cli(acl): a standard access-list line pads its action to seven columns #2462

Merged
jaylouisw merged 1 commit from rev/1121-1812 into main 2026-11-21 18:38:35 +00:00
Owner

Question. On a show access-lists line, how many columns does the action occupy?

Verdict. A standard ACE uses a seven-column action field: permit / deny . Extended lines are not padded (deny ip). The console used one space for both, so a standard list put every deny one column left of its permits.

Evidence. A Cisco Press certification chapter prints a standard list and an extended list on the same page (10 deny 192.168.11.0, wildcard bits 0.0.0.255 log (5 matches) vs 10 deny ip 192.168.10.0 0.0.0.255 host 209.165.200.225 (4 matches)), and the raw ntc-templates captures show the same split. Single-space samples are HTML pages where the run collapses. Six sources, and the one fixture line that disagrees, are in research/show-access-lists-action-column.md.

Change. displayBody() pads the action to 7 columns; extended lines untouched. New test/show-access-lists-action-column.test.js (15 checks); three existing suites widened.

Gates. node scripts/syntax-check.js OK (544 files); npm test 464 suites, 15649 assertions, 0 failed.

**Question.** On a `show access-lists` line, how many columns does the action occupy? **Verdict.** A standard ACE uses a seven-column action field: `permit ` / `deny `. Extended lines are not padded (`deny ip`). The console used one space for both, so a standard list put every deny one column left of its permits. **Evidence.** A Cisco Press certification chapter prints a standard list and an extended list on the same page (`10 deny 192.168.11.0, wildcard bits 0.0.0.255 log (5 matches)` vs `10 deny ip 192.168.10.0 0.0.0.255 host 209.165.200.225 (4 matches)`), and the raw ntc-templates captures show the same split. Single-space samples are HTML pages where the run collapses. Six sources, and the one fixture line that disagrees, are in `research/show-access-lists-action-column.md`. **Change.** `displayBody()` pads the action to 7 columns; extended lines untouched. New `test/show-access-lists-action-column.test.js` (15 checks); three existing suites widened. **Gates.** `node scripts/syntax-check.js` OK (544 files); `npm test` 464 suites, 15649 assertions, 0 failed.
cli(acl): a standard access-list line pads its action to seven columns
All checks were successful
CI / Server smoke and Docker build (pull_request) Successful in 43s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 15s
CI / Test (Node 18) (pull_request) Successful in 1m36s
CI / Test (Node 22) (pull_request) Successful in 1m31s
CI / Test (Node 20) (pull_request) Successful in 1m36s
CI / Arm auto-merge (pull_request) Successful in 5s
2a6c7ac4ce
show access-lists printed one space after either action, so a standard
list's denies sat one column left of its permits. A Cisco Press chapter
prints a standard list and an extended list on one page - '10 deny
192.168.11.0, wildcard bits 0.0.0.255 log (5 matches)' beside '10 deny
ip 192.168.10.0 0.0.0.255 host 209.165.200.225 (4 matches)' - and the
raw ntc captures draw the same line. displayBody() now pads the action
to STANDARD_ACTION_WIDTH (7); extended lines keep one space.

research/show-access-lists-action-column.md records the six sources and
the one fixture line that disagrees.
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-21 18:28:53 +00:00
forgejo-actions canceled auto merging this pull request when all checks succeed 2026-11-21 18:31:08 +00:00
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-21 18:31:08 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaylouisw/packetforge!2462
No description provided.