show interfaces <view> answers "no such port" about a word that is a view #1443

Closed
opened 2026-11-12 00:22:33 +00:00 by jaylouisw · 0 comments
Owner

Twelve words that are views under show interfaces in IOS answer % No interface <word> on <box> — the same sentence a mistyped port name gets — and show interfaces ? answers % No interface ? on <box>.

s1> show interfaces switchport
% No interface switchport on Switch (L2)-s1

s1> show interfaces status
% No interface status on Switch (L2)-s1

s1> show interfaces ?
% No interface ? on Switch (L2)-s1

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

  1. a word that is a view is reported as a view, and the refusal says this console has no such show interfaces form;
  2. the refusal points at the command that does answer the question, and every command it names actually runs — advice that does not run is another way of wasting the reader's time;
  3. a port really called something that looks like a keyword still prints its block: the port table is asked first;
  4. a genuine near-miss on a port name (show interfaces Fa0/9x) keeps the old % No interface … sentence;
  5. show interfaces ? and show interfaces help print a usage line instead of claiming a port is missing;
  6. the words live in one table the console asks, rather than in a chain of 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, ?/help print usage, case does not matter, and the keyword table is checked after the port lookup in the source. Reverting engine/cli.js fails 60 of the 71.

Twelve words that are views under `show interfaces` in IOS answer `% No interface <word> on <box>` — the same sentence a mistyped port name gets — and `show interfaces ?` answers `% No interface ? on <box>`. ``` s1> show interfaces switchport % No interface switchport on Switch (L2)-s1 s1> show interfaces status % No interface status on Switch (L2)-s1 s1> show interfaces ? % No interface ? on Switch (L2)-s1 ``` 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 1. a word that is a view is reported as a view, and the refusal says this console has no such `show interfaces` form; 2. the refusal points at the command that does answer the question, and **every command it names actually runs** — advice that does not run is another way of wasting the reader's time; 3. a port really called something that looks like a keyword still prints its block: the port table is asked first; 4. a genuine near-miss on a port name (`show interfaces Fa0/9x`) keeps the old `% No interface …` sentence; 5. `show interfaces ?` and `show interfaces help` print a usage line instead of claiming a port is missing; 6. the words live in one table the console asks, rather than in a chain of `if`s 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, `?`/`help` print usage, case does not matter, and the keyword table is checked after the port lookup in the source. Reverting `engine/cli.js` fails 60 of the 71.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaylouisw/packetforge#1443
No description provided.