has changed and caused the route to be added with a different src than we
expect.
s.syslog(s.LOG_ERR, "Could not check and/or add DNAT for IP %s to %s: %s" % (n.other_ip, n.ip, e))
if other_action == 'remove':
try:
s.syslog(s.LOG_ERR, "Could not check and/or add DNAT for IP %s to %s: %s" % (n.other_ip, n.ip, e))
if other_action == 'remove':
try:
- p = Popen(['ip', 'route', 'del', n.other_ip, 'dev', intf, 'src', main_ip], stdout=PIPE, stderr=PIPE)
+ p = Popen(['ip', 'route', 'del', n.other_ip, 'dev', intf], stdout=PIPE, stderr=PIPE)
(out, err) = p.communicate()
sys.stderr.write(err)
sys.stderr.write(out)
(out, err) = p.communicate()
sys.stderr.write(err)
sys.stderr.write(out)