Hi,
I changed my IncusOS network configuration and somehow enp5s0 get lost during that. I did not loose access to it entirely so I change to another IP and triedto revert the configuration, however on edit IncusOS looks for enp5s0 but fails inhibiting further config changes.
~$ incus admin os system network edit
WARNING: The IncusOS API and configuration is subject to change
Error: Failed to run: ip address show enp5s0: exit status 1 (Device "enp5s0" does not exist.)
How do I get around that?
I will try rebooting in the hopes that enp5s0 reappears but this is somewhat bad.
This is pulled from my shell history as the reboot brought enp5s0 back to life.
~$ incus admin os system network show
WARNING: The IncusOS API and configuration is subject to change
Error: Failed to run: ip address show enp5s0: exit status 1 (Device "enp5s0" does not exist.)
My best guess is that the IncusOS network state became inconsistent while you were editing things. I’ve tweaked the relevant logic to no longer return an error that would bubble up if asked to get IP address(es) for an interface that’s not configured. Hopefully that would prevent a recurrence and allow for further editing of the network configuration without requiring rebooting of the system.