[controller] staticmethod
This commit is contained in:
parent
f9ec915449
commit
abff485183
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ class L2Controller(object):
|
|||
""" work around ipaddress bug """
|
||||
return "{}1/{}".format(net, mask)
|
||||
|
||||
@staticmethod
|
||||
def add_host_ips(host, net, ipaddr, dev):
|
||||
subprocess.run(["mx", host, "ip", "addr", "flush", "dev", dev])
|
||||
subprocess.run(["mx", host, "sysctl", "net.ipv6.conf.lo.disable_ipv6=0"])
|
||||
|
|
Loading…
Reference in a new issue