show ip interface brief: the IP-Address cell is the bare address, not a prefix length #1616
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!1616
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1116-0607"
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?
show ip interface briefprinted10.0.0.1/24in 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 interfacesprintsip: 10.0.0.1/24andshow running-configprintsip 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 isi.iporunassigned, 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/24in that cell; it now asserts the bare address.docs/CLI.md: the rule and its sources under "Readingshow ip interface brief".research/interface-brief-address-cell.md: evidence, what changed, and what remains unresolved -NVRAMvsmanual(this model has one configuration, no saved/unsaved split), theOK?=NOcase (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.f4071444dff4f8d0464e