trunk: switchport trunk allowed vlan except <list> inverts the named list over 1-4094 #2038
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2038
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1118-2112"
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?
Question
switchport trunk allowed vlanaccepted a list,all,add <list>andremove <list>, and refused every other word in front of the list - includingexcept, which the vendor's own grammar lists as one of the command's verbs.Sources
switchport trunk, vlan-list choices:all | none | [add | remove | except] vlan-atom; "except lists the VLANs that should be calculated by inverting the defined list of VLANs. (VLANs are added except the ones specified.)" - https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-12/command_reference/b_1712_9300_cr/vlan_commands.htmlswitchport trunk allowed vlan {add | all | except | remove} vlan-list- https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-2_3_e/consolidated_guide/b_1523e_consolidated_2960x_cg/m_vlan_trunk_cg_2960-x.htmlswitchport trunk allowed vlan except 1,999thenshow interface trunk->Fa0/7 2-998,1000-4094- https://data.kemt.fei.tuke.sk/TechnologieNaBazePrepinanychSieti/Cvicenia/2024/CCNPv7.1_SWITCH_Lab3-1_VLAN-TRUNK-VTP_STUDENT.docxnonedoes) - https://netacad.fit.vutbr.cz/wp-content/uploads/ccnp/ce1/CE1_M1-5.pdfVerdict and change
exceptis a verb of the command and is the only one that is not an edit: it replaces the allowed list with the inversion of the named ids over 1-4094, regardless of what the port carried.removeon a default trunk performs the same arithmetic today, so this reusesvlanLib.allVlansExcept().except 1-4094gets it rather than a sentence about 1002.docs/CLI.mdanddocs/ARCHITECTURE.mdfollow (the latter usedexcept 20as its unknown-word example).Research note
research/trunk-allowed-except.md- what is known, what is inferred (the 1-4094 universe, the pinned defaults), what is unresolved (does a box keepexceptinshow running-config;except 1002; extended-range ids, where the CR's "1 to 1005" line forexcepthas none of the notesadd/removecarry;none, still unimplemented).Tests
node scripts/syntax-check.jsOK (424 files); newtest/trunk-allowed-except.test.js26 assertions;test/trunk-allowed-add-remove.test.js58 (itsexcept 20assertion was the old refusal); fullnpm test: 350 suites, 12135 assertions, 0 failed.switchport trunk allowed vlan except <list>inverts the named list over 1-40949e235fbf097eff45591b7eff45591btob5bc05463eb5bc05463eto1169554d261169554d26tofe66d3cc67fe66d3cc67toda0c7ef284da0c7ef284toed2a00fc7bed2a00fc7b6cfad8e466