plans: a bundle's minimum links is a field nothing can set and nothing reads #2299
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!2299
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "plan/1120-1837"
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?
Forward plan only, no code.
docs/plans/lag-min-links.md— measured on2fb4a9a7with a two-switch probe lab.What it finds
normalizeLag()parsesminLinksand defaults it to 2 (engine/lag.js:99,:156-160) but is only reached fromvalidateLag();channel-groupstores a literal with no such key (engine/cli.js:3823,:3844).grep -rln minLinksfinds onlytest/lag.test.js.show etherchannel summaryprintsM - not in use, minimum links not metin its key (engine/cli.js:447) and no code can printM: the bundle cell isS+U|D(:6939).Po1(SU), printsbundle 1 is running on 1 of 2 members, and pings 5/5. The data plane hashes across whatever is left (engine/simulator.js:3704) anddegradedcompares against capacity, not a threshold (:3716).port-channel 1 min-links 3andinterface Port-channel1are both% Unrecognized command, soshow running-confighas no line and nothing round-trips.docs/SIMULATION.md:151and:606already mark it Approximate/decoration, citingengine/lag.js:90where the constant no longer lives.Six steps. Research capture (S) → put
minLinkson the stored group with "absent means unset" (S) → onebundleState()predicate read by the summary, the member letters and the brief row (S) →port-channel <id> min-links <n>+noform (M) →PoN(SM)and a data-plane refusal (M) → docs and the stale citation (S).Two design decisions are flagged needs Jay's approval: the default value (PacketForge's 2 is not the vendor's, and
test/lag.test.js:34pins it) and the verb's spelling (there is nointerface Port-channelNmode here).Steps 3 and 4 change answers pinned by
test/brief-port-channel-row.test.js:16andtest/lag-member-down.test.js:105; the plan names both. Closes no open issue — the queue is two device requests (#803, #130).node scripts/check-doc-citations.jsandcheck-control-bytes.jspass.