cisco.nxos
cisco.nxos copied to clipboard
facts/acls/acls.py - Improper Regex caused matching errors (port_protocol)
SUMMARY
Line 114 of facts/acls/acls.py has:
port_pro = re.search(r"(eq|lt|gt|neq) (\w*)", ace)
this should be:
port_pro = re.search(r"(eq|lt|gt|neq) (\S*)", ace)
Otherwise protocols such as "ftp-data" fail a "word" match as "ftp".
ISSUE TYPE
- Bug Report
COMPONENT NAME
facts/acls/acls.py
ANSIBLE VERSION
facts/acls/acls.py
COLLECTION VERSION
cisco.nxos 3.1.0
STEPS TO REPRODUCE
Use gathered function on nxos.nxos_acls
While we are on the topic. Non-sequence lines also get ignored. Should this be handled by the ACL module?
ip access-list test
statistics per entry
10 permit any any
The line statistics per entry is ignored as it doesnt have a seq
to start it.
@NilashishC do you have a sense when this may get worked on ?
@joshinryz This is currently in progress. Thank you for your patience.