Merge branch 'develop' of https://github.com/coreemu/core into develop
This commit is contained in:
commit
c0c23190d1
4 changed files with 37 additions and 4 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue