address PR comments and fix pre-commit
This commit is contained in:
parent
6be1e19d98
commit
ddcce82af4
1 changed files with 4 additions and 1 deletions
|
@ -126,7 +126,10 @@ class LinuxNetClient:
|
|||
:param str device: device to flush
|
||||
:return: nothing
|
||||
"""
|
||||
self.run(f"[ -e /sys/class/net/{device} ] && {IP_BIN} -6 address flush dev {device} || echo")
|
||||
self.run(
|
||||
f"[ -e /sys/class/net/{device} ] && {IP_BIN} -6 address flush dev {device} || true",
|
||||
shell=True,
|
||||
)
|
||||
|
||||
def device_mac(self, device, mac):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue