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". |
||
|---|---|---|
| .. | ||
| cloudinit | ||
| configurator_linux | ||
| ifupdown | ||
| netplan | ||
| networkd | ||
| networkManager | ||
| networkScripts | ||