Default delete not necessary: 0x42 -> 66 is our host

This commit is contained in:
Nico Schottelius 2019-03-31 10:56:59 +02:00
parent 4ac6a49688
commit ec858ea27f

View file

@ -330,7 +330,6 @@ class L2Controller(object):
log.debug("Config v4 host: {} {}->{} on {} via {}".format(host, net, ipaddr, dev, router)) log.debug("Config v4 host: {} {}->{} on {} via {}".format(host, net, ipaddr, dev, router))
subprocess.call(["mx", host, "ip", "addr", "flush", "dev", dev]) subprocess.call(["mx", host, "ip", "addr", "flush", "dev", dev])
subprocess.call(["mx", host, "ip", "route", "del", "default"])
subprocess.call(["mx", host, "ip", "addr", "add", ipaddr, "dev", dev]) subprocess.call(["mx", host, "ip", "addr", "add", ipaddr, "dev", dev])
if router: if router: