summaryrefslogtreecommitdiff
path: root/tests/e2e/crash_recovery_test.go
diff options
context:
space:
mode:
authorJames O'Doherty <james@theodohertyfamily.com>2026-06-04 23:09:46 -0400
committerJames O'Doherty <james@theodohertyfamily.com>2026-06-04 23:09:46 -0400
commit78059b43e3d00a0f2b75677461692745cce34a63 (patch)
tree4a3359f978485141fe610f227d483e23552a702e /tests/e2e/crash_recovery_test.go
parent04dca5dada8c2d971ff3b54eeedc5ab6e53a29ac (diff)
refactor: remove dependency on ip CLI tool and abstract network logic
Eliminate the external dependency on the `ip` (iproute2) command-line tool by centralizing network configuration and diagnostics within a new `internal/network` package using the `netlink` library. Changes: - Introduced `internal/network` package to handle network interface listing and configuration. - Replaced `exec.Command("ip", "link")` in `internal/namespace.VerifyIsolation` with `network.ListInterfaces()`. - Improved `VerifyIsolation` to explicitly ensure only the loopback interface is present in a fresh network namespace. - Moved interface and routing configuration logic from `internal/wireguard` to `internal/network`. - Removed unnecessary `os/exec` imports from network-related files. This change increases the tool's portability by removing the requirement for `iproute2` to be installed in the target environment.
Diffstat (limited to 'tests/e2e/crash_recovery_test.go')
0 files changed, 0 insertions, 0 deletions