Two show refusals point at answers that do not exist: the rejected word is offered back as a port, and the route refusal names a table it never printed #2146

Closed
opened 2026-11-19 12:11:40 +00:00 by jaylouisw · 0 comments
Owner

Two refusals end by pointing at something that is not there. Both are in _show(), both are the sentence after the dash.

1. show ip interface brief <word> offers the rejected word back as a port.

r1#show ip interface brief ZZZNOPE
% show ip interface brief does not take "ZZZNOPE": every interface is listed - use `show interfaces ZZZNOPE` for one port
r1#show interfaces ZZZNOPE
% No interface ZZZNOPE on ISR 4331 branch router-r1

The refusal is right; the advice is a second wrong answer, and it is built from the words it just rejected (engine/cli.js, 'use ``show interfaces ``' + want + '`` for one port'). The narrower question really does have an answer - show interfaces <port> - so the pointer should only name a port when the typed words name one the box has, and otherwise keep the <port> placeholder that show mac address-table interface <port> already uses.

2. show ip route <prefix> points at a table it did not print.

r1#show ip route 192.0.2.0/24
% show ip route does not take "192.0.2.0/24": the whole table is printed - read the row for the prefix in the table below

The refusal is one line (that is the point of #1403) and no table follows it, so "read the row ... in the table below" sends the operator looking past the answer for output that was never printed. It should name the command that prints the table.

docs/CLI.md quotes the second message, so the doc moves with it.

Two refusals end by pointing at something that is not there. Both are in `_show()`, both are the sentence after the dash. **1. `show ip interface brief <word>` offers the rejected word back as a port.** ``` r1#show ip interface brief ZZZNOPE % show ip interface brief does not take "ZZZNOPE": every interface is listed - use `show interfaces ZZZNOPE` for one port r1#show interfaces ZZZNOPE % No interface ZZZNOPE on ISR 4331 branch router-r1 ``` The refusal is right; the advice is a second wrong answer, and it is built from the words it just rejected (`engine/cli.js`, `'use ``show interfaces ``' + want + '`` for one port'`). The narrower question really does have an answer - `show interfaces <port>` - so the pointer should only name a port when the typed words name one the box has, and otherwise keep the `<port>` placeholder that `show mac address-table interface <port>` already uses. **2. `show ip route <prefix>` points at a table it did not print.** ``` r1#show ip route 192.0.2.0/24 % show ip route does not take "192.0.2.0/24": the whole table is printed - read the row for the prefix in the table below ``` The refusal is one line (that is the point of #1403) and no table follows it, so "read the row ... in the table below" sends the operator looking past the answer for output that was never printed. It should name the command that prints the table. `docs/CLI.md` quotes the second message, so the doc moves with it.
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#2146
No description provided.