show interfaces <view> answers "no such port" about a word that is a view #1443
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1443
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Twelve words that are views under
show interfacesin IOS answer% No interface <word> on <box>— the same sentence a mistyped port name gets — andshow interfaces ?answers% No interface ? on <box>.The words:
switchport,trunk,status,description,counters,summary,capabilities,transceiver,errdisable,flowcontrol,history,stats.Nothing is broken about the port — the view does not exist here. But the answer tells an operator who typed a command they know from IOS that a socket is missing, so the next thing they do is hunt for a typo in a port name that was never wrong. And the one question whose whole purpose is "what may I type here?" gets an error saying a port called
?is missing.What should be true
show interfacesform;show interfaces Fa0/9x) keeps the old% No interface …sentence;show interfaces ?andshow interfaces helpprint a usage line instead of claiming a port is missing;ifs that can drift apart.Evidence:
test/show-interfaces-view-keywords.test.js, 71 checks — each of the twelve words is named as a view and never as a missing port, the offered commands (show vlan brief,show version,show lldp neighbors,show interfaces <port>) are executed and required to answer, bogus and real ports answer exactly as before,?/helpprint usage, case does not matter, and the keyword table is checked after the port lookup in the source. Revertingengine/cli.jsfails 60 of the 71.show ip ospf interface briefis a view, not a port that is missing #2257