[controller] staticmethod

This commit is contained in:
Nico Schottelius 2019-02-23 18:17:00 +01:00
parent f9ec915449
commit abff485183

View file

@ -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"])