show interfaces Port 1 refuses a port that exists: the reporting doors read only the first word of a name #1401

Closed
opened 2026-11-11 00:08:30 +00:00 by jaylouisw · 0 comments
Owner

interface Port 1 has read the port name as the whole rest of the line since #1230 — its own comment says why:
Ubiquiti calls its ports Port 1 and its cages SFP+ 1, so reading only the first word looked up a port called
Port and refused it. That fix reached the configuration door; the reporting doors were left behind. On the 17
models
whose ports are named this way:

sw1#show interfaces Port 1                   % No interface Port on EdgeSwitch 24 PoE (250W)
sw1#show power inline Port 1                 % No interface Port on EdgeSwitch 24 PoE (250W)
sw1#show mac address-table interface Port 1  every entry on the switch

So an operator can configure a port by the name printed in front of them and cannot look at it, and the refusal
names a port they never typed. The third command accepts a filter and drops it, which reads as "this port has all of
them".

What must be true instead

  • every command that takes a port name reads the whole rest of the line, and refuses an unknown name by the name
    that was typed;
  • a filter that is accepted is applied or refused — never ignored — and an empty result says it is empty for
    that port rather than printing a bare table, which reads as a claim about the whole box;
  • the configuration door and the reporting doors agree about what a port is called, on every model in the catalogue.
`interface Port 1` has read the port name as the whole rest of the line since #1230 — its own comment says why: Ubiquiti calls its ports `Port 1` and its cages `SFP+ 1`, so reading only the first word looked up a port called `Port` and refused it. That fix reached the configuration door; the reporting doors were left behind. On the **17 models** whose ports are named this way: ``` sw1#show interfaces Port 1 % No interface Port on EdgeSwitch 24 PoE (250W) sw1#show power inline Port 1 % No interface Port on EdgeSwitch 24 PoE (250W) sw1#show mac address-table interface Port 1 every entry on the switch ``` So an operator can *configure* a port by the name printed in front of them and cannot *look* at it, and the refusal names a port they never typed. The third command accepts a filter and drops it, which reads as "this port has all of them". ## What must be true instead * every command that takes a port name reads **the whole rest of the line**, and refuses an unknown name by the name that was typed; * a filter that is accepted is **applied or refused** — never ignored — and an empty result says it is empty for *that port* rather than printing a bare table, which reads as a claim about the whole box; * the configuration door and the reporting doors agree about what a port is called, on every model in the catalogue.
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#1401
No description provided.