]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
DVR: remove redundant check
authorGary Kotton <gkotton@vmware.com>
Wed, 11 Nov 2015 18:22:12 +0000 (10:22 -0800)
committerGary Kotton <gkotton@vmware.com>
Wed, 11 Nov 2015 18:22:12 +0000 (10:22 -0800)
Patch https://review.openstack.org/#/c/225319 added a redundant
check.
This cleans that up.

Change-Id: I3b66872d0d3bd1bce33b1476376df275a8398bb5

neutron/db/l3_dvr_db.py

index 29c3f5299172d33c504edd7146c0469107020c8d..2bc191331f618d930dde4497e63c5dd6e11f8f0e 100644 (file)
@@ -342,7 +342,7 @@ class L3_NAT_with_dvr_db_mixin(l3_db.L3_NAT_db_mixin,
         This function returns true if it is a multiprefix port.
         """
         subnet_id = subnet['id']
-        if router.gw_port and subnet_id:
+        if router.gw_port:
             # If router has a gateway port, check if it has IPV6 subnet
             cs_port = (
                 self._find_router_port_by_network_and_device_owner(