Acl¶
Module for working with EOS access control list resources
This module provides an implementation for configuring and managing access access control lists on Arista EOS nodes. Access control lists can be specified as either ‘standard’ or ‘extended’ ACLs. This module provides the following class implementations:
- Acls – The top-level class used to manage both standard and extended
access control lists in EOS
StandardAcls – Class that manages the set of standard ACLs
ExtendedAcls – Class that manages the set of extended ACLs
- class pyeapi.api.acl.Acls(node, *args, **kwargs)[source]¶
- class pyeapi.api.acl.ExtendedAcls(node)[source]¶
Bases:
pyeapi.api.abstract.EntityCollection
- add_entry(name, action, protocol, srcaddr, srcprefixlen, dstaddr, dstprefixlen, log=False, seqno=None)[source]¶
- entry_re = re.compile('(\\d+)(?: ([p|d]\\w+))(?: (\\w+|\\d+))(?: ([a|h]\\w+))?(?: ([0-9]+(?:\\.[0-9]+){3}))?(?:/([0-9]{1,2}))?(?: ((?:eq|gt|lt|neq|range) [\\w-]+))?(?: ([a|h]\\w+))?(?: ([0-9]+(?:\\.[0-9]+){3}))?(?:/([0-9]{)¶
- class pyeapi.api.acl.StandardAcls(node)[source]¶
Bases:
pyeapi.api.abstract.EntityCollection
- entry_re = re.compile('(\\d+)(?: ([p|d]\\w+))(?: (any))?(?: (host))?(?: ([0-9]+(?:\\.[0-9]+){3}))?(?:/([0-9]{1,2}))?(?: ([0-9]+(?:\\.[0-9]+){3}))?(?: (log))?')¶