OVS-DVR: Suppress a confusing error log about csnat port

Complain only when the port was seen on a different subnet.

Change-Id: If4a310da06f9b0076a9f62926a16b574a8c109ce
This commit is contained in:
YAMAMOTO Takashi 2015-05-15 11:33:51 +09:00
parent dca3cdfae9
commit 8dbacebf67
1 changed files with 2 additions and 0 deletions

View File

@ -600,6 +600,8 @@ class OVSDVRNeutronAgent(object):
# dvr routed subnet
ovsport = self.local_ports[port.vif_id]
subs = list(ovsport.get_subnets())
if subs[0] == fixed_ips[0]['subnet_id']:
return
LOG.error(_LE("Centralized-SNAT port %(port)s on subnet "
"%(port_subnet)s already seen on a different "
"subnet %(orig_subnet)s"), {