Remove redundant codes

the code is redundant, it should be removed

Change-Id: I050bfc0b4d72037510dc2f3d729a564869a374c2
Closes-Bug: #1265132
This commit is contained in:
shihanzhang 2013-12-31 15:22:40 +08:00
parent 791481224c
commit 824fb53a79

View File

@ -196,7 +196,6 @@ class L3_NAT_db_mixin(l3.RouterPluginBase):
if fip_count: if fip_count:
raise l3.RouterExternalGatewayInUseByFloatingIp( raise l3.RouterExternalGatewayInUseByFloatingIp(
router_id=router_id, net_id=gw_port['network_id']) router_id=router_id, net_id=gw_port['network_id'])
if gw_port and gw_port['network_id'] != network_id:
with context.session.begin(subtransactions=True): with context.session.begin(subtransactions=True):
router.gw_port = None router.gw_port = None
context.session.add(router) context.session.add(router)