The set and no forms of spanning-tree vlan give the same answer (#1509) #1561
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!1561
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/1115-2306"
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?
Fixes #1509
no spanning-tree vlan 10answered% Unknown spanning-tree sub-command "vlan": the only form here isno spanning-tree..., whilespanning-tree vlan 10answered% This device runs one spanning tree, not one per VLAN: usespanning-tree priority <0-61440>``. Per-VLAN STP is a real IOS concept this model deliberately does not have; thenobranch called it an unknown word, so an operator reading the refusal concludes the console has never heard of it - which is what the other door denies, and not true.#1501hoisted the unmodelled verbs into one list for both directions and leftvlan- the one sub-command that is not a verb - duplicated in the set branch only. The explanation is now one constant (STP_ONE_TREE) used by both directions, and thenoform names the removal that does exist:no spanning-tree priority. Neither direction touchesconfig.stpPriority.Test
test/no-command-touches-only-what-it-names.test.js: a new check that both directions state the concept, that neither says "unknown", that each names the command that exists, and that the priority survives both. Against the previous handler it fails with exactly the reported message; with this change the file is 12/12 (node test/no-command-touches-only-what-it-names.test.js).Full suite
npm test: 255 suites, 9298 assertions, 0 failed.node scripts/syntax-check.js: 325 files OK.At the console now:
spanning-tree vlanexplain the one tree (#1509)5be72702afba1aaecdbc