no vlan 20 deletes a VLAN that a port is still staged for as its voice VLAN #1701
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1701
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?
The transcript
On a Catalyst 2960 (and any switch in the catalogue), with
switchport voice vlanon a port that is not a trunk - the one case the console itself calls stored:Afterwards the two surfaces describe different switches:
and one command later it is not staged any more - it is in use, on a VLAN the switch does not have:
Why this is a defect rather than a policy
no vlanalready refuses two kinds of reference and names them (engine/cli.js, thestagedarray):% VLAN 20 is still carried by 1 port(s): Fa0/1 - move them off it first;% VLAN 20 is still referenced by 1 port(s): Fa0/1 (trunk native, trunk allowed, stored) - clear that first.The second guard exists on the stated ground that removing the VLAN "rewrote the port's staged configuration in silence".
switchport voice vlan(#1368) added a third staged reference, and the guard was never extended to it - so the last command that can leave a port pointing at a VLAN that does not exist is the only one that is not stopped.The access VLAN reference is deliberately not refused (the device deletes the VLAN and the port goes inactive,
vlan-delete-leaves-port-inactive.test.js); this is the other case, the one the console stores and does not use yet.Expected
no vlan 20refuses while any port has VLAN 20 staged as its voice VLAN, names the port and the field, and leaves both the VLAN and the port untouched - the same answer the other two staged references already get.no vlanrefuses a VLAN a port holds as its staged voice VLAN #1705Fixed in PR #1705 (branch
fix/1116-1805, commit6f7ad821). The staged guard now names the voice VLAN with the native VLAN and the allowed list:Suites: 285 / 10237 assertions / 0 failed; syntax check 356 files all OK.