Browse Source

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
changes/08/672208/2
Adit Sarfaty 1 month ago
parent
commit
c52138c62e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      vmware_nsx/services/fwaas/nsx_v3/edge_fwaas_driver_base.py

+ 1
- 1
vmware_nsx/services/fwaas/nsx_v3/edge_fwaas_driver_base.py View File

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

Loading…
Cancel
Save