Browse Source

++ info for ipv4 host

master
Nico Schottelius 3 years ago
parent
commit
4ac6a49688
  1. 2
      p4app/controller.py

2
p4app/controller.py

@ -327,7 +327,7 @@ class L2Controller(object):
@staticmethod
def config_v4_host(host, net, ipaddr, dev, router=None):
log.debug("Config v4 host: {} {}->{} on {}".format(host, net, ipaddr, dev))
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", "route", "del", "default"])

Loading…
Cancel
Save