go-network-configurator/tests
James Coleman fae43247de Switch unit tests to testify
Bring an administratively down interface up in AddAddress before writing
its addresses and routes. The kernel installs an address's connected
route only while its link is up, so adding a gateway to a down interface
was rejected as unreachable. A link raised this way is part of the
pre-change state AddAddress restores, so it is returned to down on any
path that does not complete.

Also fix the rollback masking its own error: deleting the address it
added takes the default route with it, since that route resolved its
nexthop through the address's connected subnet. The following RouteDel
then answered ESRCH and was reported in place of "aborted operation due
to loss of internet".
2026-07-10 08:52:52 -05:00
..
cloudinit first commit 2026-07-01 15:17:11 -05:00
configurator_linux first commit 2026-07-01 15:17:11 -05:00
ifupdown first commit 2026-07-01 15:17:11 -05:00
netplan first commit 2026-07-01 15:17:11 -05:00
networkd first commit 2026-07-01 15:17:11 -05:00
networkManager Switch unit tests to testify 2026-07-10 08:52:52 -05:00
networkScripts first commit 2026-07-01 15:17:11 -05:00