interfaces: a view word after a real port is answered as the view, not as a missing port (#1834) #1837
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!1837
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/1117-1135"
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?
Fixes #1834.
show interfaces [<port>] switchport/countersare the port-first spellings of the IOS views #1443/#1449 made honest for the keyword form. The port lookup consumed the whole line as a name, soclaimed a socket called "Fa0/1 counters" was missing.
viewAfterPort()resolves the prefix through the same tableinterface Fa0/1uses, and reads a tail as a view only when it is a word fromINTERFACES_VIEW_KEYWORDS(or?/help);counterskeeps its port; multi-word names (Port 1) resolve;Fa0/99 counters) and an unknown tail (Fa0/1 nonsense) keep the missing-port sentence;show interfaces Fa0/1 ?is now a usage line instead of% No interface Fa0/1 ?;status,summary,flowcontrol,brief) it ends onshow interfaces <port>.QA:
node scripts/syntax-check.js384 files OK;node scripts/check-doc-citations.jsexit 0;node scripts/check-control-bytes.jsclean; fullnpm test312 suites / 10,931 assertions / 0 failed (baseline main was 312 / 10,905 / 0).test/show-interfaces-view-keywords.test.jsis 97 checks.452e38e6d87e85d74026