cli: show ip ospf interface brief is a view, not a port that is missing #2257
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!2257
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1120-0412"
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?
The
briefkeyword ofshow ip ospf interfacewas read as a port name and refused with% No interface brief on <box>- the sentence a misspelt port gets, about a command every IOS box has (the defect class #1443 fixed forshow interfaces switchport).Question (one, narrow). What does the
briefview print - its cells, order and widths - and which of those cells can this engine fill from state it actually computes?Verdict. Known for the shape, and the engine can fill four of seven cells:
Interface,Area,IP Address/Mask,Cost- all present indev.ospfInterfaces.PID- the process id fromrouter ospf <process-id>, a command this console does not have (one unnamed process; the summary already saysRouting Process with ID <router-id>). The Cisco Learning Network capture printsPID 3, so the cell is the operator's number, not a constant - printing1would claim a configuration nobody typed.State- the port's DR/BDR role;computeOspf()elects a role only across a single cable with two speakers.Nbrs F/C- theFhalf isdev.ospfNeighbors; theChalf counts neighbours detected (2-WAY), a state the engine records as a refusal instead.So the console now answers as a view: it names the view, prints the header at the vendor's measured widths, says the PID is the one cell no other view stands in for, and points at
show ip ospf interface [<port>]. A port genuinely namedbriefstill wins, because the port table is consulted first.Sources. Cisco IOS OSPF Command Reference (
ospf-s1.html, grammar and field list), the Academy Configuring Multiarea OSPFv2 lab PDF (the only capture whose spacing survives extraction - the widths are measured off it), Cisco Press "Implementing OSPFv2" (DR 0/0on a lonely port), kazulog (a passiveGi2keepsState DRat0/0;F/Cdefined), Cisco Learning Network (PID 3), Ruckus FastIron command reference (the State vocabulary).Changed.
engine/cli.js,_showOspf(): theinterfacebranch tests the trailing word against the keyword's abbreviations (b,bri,brie,brief, any case) when the words are not a port, and answers with a four-line view refusal.test/show-ip-ospf-interface-brief.test.js(new, 16 checks).docs/CLI.md: the paragraph that documented% No interface brief on r1as the console's answer.docs/BGP-POLICY.md: twocli.js:7485anchors moved to7531(the insert sits above_help()).research/show-ip-ospf-interface-brief.md: the captures, the seven cells and their widths, what is derivable, and what would settle the rest.CHANGELOG.md.Gates.
node scripts/syntax-check.js: 478 files, all OK.node scripts/check-doc-citations.js: no judged citation beyond drift.npm test: 398 suites, 13264 assertions passed, 0 failed.Still unresolved.
CinNbrs F/Cneeds a 2-WAY neighbour (a heard-but-not-adjacent peer) to count, and theDROTHERspelling needs a third speaker on one segment; the PID waits on a modelling decision (router ospf <process-id>), not on evidence. What would settle the first two: a paste from three routers on one VLAN, and one from a Hello-interval mismatch.show ip ospf interface briefis a view, not a port that is missing