mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
112738198f
The old wan_bridge name misled operators into pointing the field at the OVN-side bridge 'br-ext', which never sees LAN DHCP traffic. On consumer-router LANs (WAN NIC enslaved to a Linux bridge) the vpcd DHCP client's AF_PACKET bind failed silently, blocking the default install path. - Rename Go field WanBridge -> DhcpBindBridge and TOML key wan_bridge -> dhcp_bind_bridge across config, vpcd service, external IPAM, daemon pool wiring, admin settings, and spinifex.toml template. - Rewrite detectedWanBridge() -> detectedDhcpBindBridge(): the Linux-bridge branch now returns the bridge name verbatim (e.g. "br-wan") instead of synthesising "br-ext". OVS-vs-Linux probe via ovs-vsctl is no longer needed for this field. - Add checkLegacyWanBridgeKey() in cmd/service.go: vpcd fail-starts if the deprecated 'wan_bridge' TOML key or SPINIFEX_VPCD_WAN_BRIDGE env var is set. No silent alias, no auto-rewrite (per plan D3/D13). - Template carries an operator-facing comment warning never to set the field to 'br-ext'. - 7 new unit tests for the detector branches and fail-start paths. Smoke on ben-bottlebrush: spx admin init --force writes dhcp_bind_bridge matching the live br-wan Linux bridge; VM launched with --map-public-ip-on-launch reached from LAN; restoring a legacy-key backup causes vpcd to enter failed state with the deprecated-key guidance log. Plan: docs/development/bugs/dhcp-vpcd-issues.md (Fix 4) Bead: mulga-998.a (unblocker for .b / .c)