Remove unnecessary port deletion
Fixes bug 1088368 Change-Id: I41b816a8d72d09740ea7d063172a75cedffb8d6d
This commit is contained in:
parent
340684b4dd
commit
dd97144c08
@ -857,7 +857,6 @@ class L3_NAT_db_mixin(l3.RouterPluginBase):
|
||||
if len(fixed_ips) > 1:
|
||||
LOG.error(_("Ignoring multiple IPs on router port %s") %
|
||||
port['id'])
|
||||
ports.remove(port)
|
||||
continue
|
||||
# Empty fixed_ips should not happen
|
||||
fixed_ip = fixed_ips[0]
|
||||
|
@ -1363,7 +1363,7 @@ class L3NatDBTestCase(test_db_plugin.QuantumDbPluginV2TestCase):
|
||||
routers = plugin.get_sync_data(ctx, None)
|
||||
self.assertEqual(1, len(routers))
|
||||
interfaces = routers[0].get(l3_constants.INTERFACE_KEY, [])
|
||||
self.assertEqual(0, len(interfaces))
|
||||
self.assertEqual(1, len(interfaces))
|
||||
# clean-up
|
||||
self._router_interface_action('remove',
|
||||
r['router']['id'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user