From: Gary Kotton Date: Wed, 11 Nov 2015 18:22:12 +0000 (-0800) Subject: DVR: remove redundant check X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3b2bd407b25addc7c11c46e6a20a313bbbdf2332;p=openstack-build%2Fneutron-build.git DVR: remove redundant check Patch https://review.openstack.org/#/c/225319 added a redundant check. This cleans that up. Change-Id: I3b66872d0d3bd1bce33b1476376df275a8398bb5 --- diff --git a/neutron/db/l3_dvr_db.py b/neutron/db/l3_dvr_db.py index 29c3f5299..2bc191331 100644 --- a/neutron/db/l3_dvr_db.py +++ b/neutron/db/l3_dvr_db.py @@ -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(