resolve black formatting
This commit is contained in:
parent
953bd80e2e
commit
ba18853509
1 changed files with 3 additions and 3 deletions
|
@ -168,10 +168,10 @@ class LinuxNetClient:
|
|||
)
|
||||
else:
|
||||
self.run(f"{IP_BIN} address add {address} dev {device}")
|
||||
if ':' in address:
|
||||
# IPv6 addresses are removed by default on interface down.
|
||||
if ":" in address:
|
||||
# IPv6 addresses are removed by default on interface down.
|
||||
# Make sure that the IPv6 address we add is not removed
|
||||
self.run(f"{SYSCTL_BIN} -w net.ipv6.conf.{device}.keep_addr_on_down=1")
|
||||
self.run(f"{SYSCTL_BIN} -w net.ipv6.conf.{device}.keep_addr_on_down=1")
|
||||
|
||||
def delete_address(self, device: str, address: str) -> None:
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue