acl: show access-lists spells a standard entry the way a box does #2071
No reviewers
Labels
No labels
blocked-on-build
bug
device
device-request
enhancement
from-github
needs-datasheet
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2071
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1119-0212"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Question
On a standard IPv4 list, how does a box print the source on a
show access-listsline — the address and wildcard as typed, oraddr, wildcard bits wc? And is the extended form the same?Verdict
Settled and corrected for the standard form. A box prints
<addr>, wildcard bits <wc>, a host as the bare address (nohostkeyword), andanyasany. The console echoed the typed line (permit 192.168.1.0 0.0.0.255,deny host 10.0.1.10).Sources: Cisco doc 23602; Catalyst 2960 12.2(44)SE command reference; Catalyst 2960-L 15.2(5)E and Catalyst 9300 17.16 config guides; ntc-templates real captures (
show_access-list.raw,show_ip_access-lists.raw,show_access-list3.raw). The extended form keepshostand has no comma, and since typed extended lines already match it, they are untouched.Change
engine/acl.js:displayBody(entry)renders a standard entry's body from the parsed source, returningnullfor lines it does not speak for.engine/cli.js: asks it for standard entries; everything else keeps the typed text. Sequences, indent, counter key andshow running-configunchanged.test/show-access-lists-standard-address-form.test.js(17 checks);test/acl-data.test.jsupdated from the old typed form to the vendor's.research/show-access-lists-standard-address-form.mdrecords sources and what is still open (permit/deny padding, numeric all-ones wildcard vsany, extended host normalisation).Tests
node scripts/syntax-check.js: 435 files OK.npm test: 358 suites, 12318 assertions, 0 failed.Unresolved: the
permit/denypadding on standard lines (captures disagree), whether0.0.0.0 255.255.255.255folds intoany, and whether a box normalises an extended<addr> 0.0.0.0tohost <addr>.show access-listsspells a standard entry the way a box does