Does this support other types of ACLs? #3
edthezombie
announced in
Announcements
Replies: 1 comment
-
Great to know you're enjoying it! Example of a standard ACL. import cisco_acl
config = """
ip access-list standard ACL
permit 10.0.0.0 0.0.0.255
permit 10.0.1.0 0.0.0.255
permit 10.0.2.0 0.0.0.255
"""
acl = cisco_acl.Acl(line=config, type="standard")
print(acl)
# ip access-list standard ACL
# permit 10.0.0.0 0.0.0.255
# permit 10.0.1.0 0.0.0.255
# permit 10.0.2.0 0.0.0.255
for ace in acl.items:
print(f"{ace.srcaddr.prefix=}")
# ace.srcaddr.prefix='10.0.0.0/24'
# ace.srcaddr.prefix='10.0.1.0/24'
# ace.srcaddr.prefix='10.0.2.0/24' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Love this so far. Just wondering, does this support standard ACL's and IPv6? It seems to only pickup IPv4 extended access-lists. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions