diff --git a/daemon/core/nodes/netclient.py b/daemon/core/nodes/netclient.py index b201493f..4d568a64 100644 --- a/daemon/core/nodes/netclient.py +++ b/daemon/core/nodes/netclient.py @@ -126,7 +126,9 @@ class LinuxNetClient: :param str device: device to flush :return: nothing """ - self.run(f"{IP_BIN} -6 address flush dev {device}") + self.run( + f"[ -e /sys/class/net/{device} ] && {IP_BIN} -6 address flush dev {device} || true" + ) def device_mac(self, device, mac): """