banger/internal
Thales Maciel 171009b30b
Manage NAT directly from VM records
Fix the Go control plane NAT path now that runtime state lives in the daemon instead of the old repo-local vm.json files.

Add a daemon-native NAT helper that derives uplink, guest IP, and TAP rules directly from VMRecord, applies the existing iptables/sysctl behavior idempotently, and removes the broken nat.sh handoff from vm.go.

Cover uplink parsing and rule generation with unit tests. Validated with go test ./... and make build; a live verify.sh --nat run installed host rules but stopped on the same guest SSH-readiness issue seen in the plain smoke test on this host.
2026-03-16 13:50:54 -03:00
..
api Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00
cli Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00
config Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00
daemon Manage NAT directly from VM records 2026-03-16 13:50:54 -03:00
firecracker Use Firecracker SDK in daemon 2026-03-16 13:26:41 -03:00
model Use Firecracker SDK in daemon 2026-03-16 13:26:41 -03:00
paths Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00
rpc Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00
store Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00
system Add Go daemon-driven VM control plane 2026-03-16 12:52:54 -03:00