NSX|V3: Ignore 0.0.0.0 ips in FWaaS (and not just 0.0.0.0/x cidrs)

This affects FWaaS  drivers, as the backend does not support this ip.

(Cherry-picked from I4aec5f2718581fc867d9bae1722770b448ccdfd5)

Change-Id: I44119802567aeb950fca95b03f76e3825668ef01
This commit is contained in:
Adit Sarfaty 2019-07-23 09:47:32 +03:00
parent 0e56475ef4
commit c52138c62e
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class CommonEdgeFwaasV3Driver(fwaas_base.FwaasDriverBase):
'cidr': cidr, 'id': fwaas_rule_id}) 'cidr': cidr, 'id': fwaas_rule_id})
net = netaddr.IPNetwork(cidr) net = netaddr.IPNetwork(cidr)
if net.version == 4: if net.version == 4:
if cidr.startswith('0.0.0.0/'): if cidr.startswith('0.0.0.0'):
# Treat as ANY and just log warning # Treat as ANY and just log warning
LOG.warning(error_msg) LOG.warning(error_msg)
return return