-
Notifications
You must be signed in to change notification settings - Fork 10
doublezero-admin migration command #3349
Copy link
Copy link
Open
Milestone
Description
One-time migration command covering two tasks:
- Links — iterate all existing
Linkaccounts withlink_topologies = []and setlink_topologies[0]to the UNICAST-DEFAULTTopologyInfopubkey. - Vpnv4 loopbacks — iterate all existing
Interfaceaccounts withloopback_type = Vpnv4and allocate aFlexAlgoNodeSegmententry (topology pubkey + allocated node segment index fromSegmentRoutingIdsResourceExtension) for each knownTopologyInfoaccount. Existingnode_segment_idxassignments (algo-0) are unchanged.
The command MUST be idempotent — re-running skips already-migrated accounts. Must emit a summary on completion (e.g. migrated 12 links, 4 loopbacks; skipped 3 already migrated). A --dry-run flag MUST be supported.
Milestone: RFC-18: CLI
RFC: #3288
Files affected:
controlplane/doublezero-admin/src/cli/(new migration subcommand)
Size: Medium
Tests:
- Migration skips already-migrated links and loopbacks
- Allocates correctly for unset links and loopbacks
- Dry-run output matches expected changes without applying
- Idempotent on re-run
- Summary output correct
Blockers: #3344 (TopologyInfo account)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels