show ip interface brief: the IP-Address cell is the bare address, not a prefix length #1616

Merged
jaylouisw merged 1 commit from rev/1116-0607 into main 2026-11-16 06:24:48 +00:00
Owner

show ip interface brief printed 10.0.0.1/24 in the IP-Address cell. No IOS sample does: the field list defines the column as "IP address assigned to the interface", and every published sample - the IOS interface reference (Ethernet0 10.108.00.5 YES NVRAM up up), the Catalyst 2960 interface summary (Vlan1 172.20.135.202 YES NVRAM up up), the CPT and 4000-series ISR guides, and a practitioner transcript of a DHCP lease (Ethernet0/1 192.168.12.2 YES DHCP up up) - prints a bare dotted quad. The table's header is IOS's character for character (#1521); this cell was the one column that was not.

The mask is not lost: show interfaces prints ip: 10.0.0.1/24 and show running-config prints ip address 10.0.0.1 255.255.255.0, which are the two views a box prints it in - and the test asserts both still do.

Changed

  • engine/cli.js: the IP-Address cell is i.ip or unassigned, with the sources recorded beside it.
  • test/interface-brief-address-cell.test.js (new, 12 checks): a static address, a /30 address, an address that arrived from a lease, an empty port, the two views that do print the mask, and every row of a switch table.
  • test/brief-method-unset.test.js: asserted /24 in that cell; it now asserts the bare address.
  • docs/CLI.md: the rule and its sources under "Reading show ip interface brief".
  • research/interface-brief-address-cell.md: evidence, what changed, and what remains unresolved - NVRAM vs manual (this model has one configuration, no saved/unsaved split), the OK? = NO case (this model refuses an invalid address at the command), and the Interface column's width (published samples disagree: 23 vs 27; one catalogue model's names exceed 23 characters).

Gates

node scripts/syntax-check.js - 339 files OK. npm test - 269 suites, 9,704 assertions, 0 failed.

`show ip interface brief` printed `10.0.0.1/24` in the IP-Address cell. No IOS sample does: the field list defines the column as "IP address assigned to the interface", and every published sample - the IOS interface reference (`Ethernet0 10.108.00.5 YES NVRAM up up`), the Catalyst 2960 interface summary (`Vlan1 172.20.135.202 YES NVRAM up up`), the CPT and 4000-series ISR guides, and a practitioner transcript of a DHCP lease (`Ethernet0/1 192.168.12.2 YES DHCP up up`) - prints a bare dotted quad. The table's header is IOS's character for character (#1521); this cell was the one column that was not. The mask is not lost: `show interfaces` prints `ip: 10.0.0.1/24` and `show running-config` prints `ip address 10.0.0.1 255.255.255.0`, which are the two views a box prints it in - and the test asserts both still do. ### Changed - `engine/cli.js`: the IP-Address cell is `i.ip` or `unassigned`, with the sources recorded beside it. - `test/interface-brief-address-cell.test.js` (new, 12 checks): a static address, a /30 address, an address that arrived from a lease, an empty port, the two views that do print the mask, and every row of a switch table. - `test/brief-method-unset.test.js`: asserted `/24` in that cell; it now asserts the bare address. - `docs/CLI.md`: the rule and its sources under "Reading `show ip interface brief`". - `research/interface-brief-address-cell.md`: evidence, what changed, and what remains unresolved - `NVRAM` vs `manual` (this model has one configuration, no saved/unsaved split), the `OK?` = `NO` case (this model refuses an invalid address at the command), and the Interface column's width (published samples disagree: 23 vs 27; one catalogue model's names exceed 23 characters). ### Gates `node scripts/syntax-check.js` - 339 files OK. `npm test` - 269 suites, 9,704 assertions, 0 failed.
show ip interface brief: the IP-Address cell is the bare address, not a prefix length
All checks were successful
CI / Classify the change (pull_request) Successful in 12s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 16s
CI / Server smoke test (pull_request) Successful in 49s
CI / Docker build (pull_request) Successful in 22s
CI / Test (Node 20) (pull_request) Successful in 1m40s
CI / Test (Node 18) (pull_request) Successful in 1m47s
CI / Test (Node 22) (pull_request) Successful in 1m53s
f4071444df
IOS's field list defines the column as "IP address assigned to the interface", and every sample - the IOS
interface reference, the Catalyst 2960 interface summary, the CPT and 4000-series guides, and a practitioner
transcript of a DHCP lease - prints a bare dotted quad. This console added "/24" of its own, so a row pasted
into a ticket carried a string the hardware cannot produce. The mask is printed where a box prints it:
`show interfaces` (ip: 10.0.0.1/24) and `show running-config` (ip address 10.0.0.1 255.255.255.0).
jaylouisw scheduled this pull request to auto merge when all checks succeed 2026-11-16 06:24:40 +00:00
jaylouisw force-pushed rev/1116-0607 from f4071444df
All checks were successful
CI / Classify the change (pull_request) Successful in 12s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 16s
CI / Server smoke test (pull_request) Successful in 49s
CI / Docker build (pull_request) Successful in 22s
CI / Test (Node 20) (pull_request) Successful in 1m40s
CI / Test (Node 18) (pull_request) Successful in 1m47s
CI / Test (Node 22) (pull_request) Successful in 1m53s
to f4f8d0464e
All checks were successful
CI / Classify the change (pull_request) Successful in 12s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 11s
CI / Test (Node 18) (pull_request) Has been skipped
CI / Test (Node 20) (pull_request) Has been skipped
CI / Test (Node 22) (pull_request) Has been skipped
CI / Server smoke test (pull_request) Has been skipped
CI / Docker build (pull_request) Has been skipped
2026-11-16 06:24:42 +00:00
Compare
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!1616
No description provided.