show interfaces <port> switchport says the port is missing: a view word after a real port is read as part of its name #1834
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1834
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?
A view word typed after a real port is read as part of the port name, so the console says the port does not exist.
show interfaces [<port>] switchportandshow interfaces [<port>] countersare the port-first spellings of the same IOS views, and Fa0/1 is right there. #1443/#1449 fixed the keyword-first form (show interfaces switchport-> "is a view, not a port",show interfaces counters errors-> reported as thecountersview); the port-first half of the same door still answers with the sentence a mistyped port name gets, so the operator goes hunting for a typo in a socket name that was never wrong. The?key lands in the same sentence.Expected: recognise the port prefix by the same table
interface Fa0/1uses, and report the trailing word as the view it is — pointing atshow interfaces <port>, which prints the status, address, switchport line and counters — instead of claiming a port named "Fa0/1 counters" is missing.Pinned locally:
test/show-interfaces-view-keywords.test.js(a port followed by a view word is still the view, not a missing port).