]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fixes SNAT port not found for internal port
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Wed, 16 Sep 2015 18:13:46 +0000 (11:13 -0700)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Fri, 18 Sep 2015 18:21:35 +0000 (11:21 -0700)
commite0664a4c2cd8ec5e24f67eac2b2c4e04464888d3
tree235065b71e3a85a802dbaa1323a5740765ee6d48
parent7e647b1df3d6e67d4cf1af29f4eda0f48ccd6eb0
Fixes SNAT port not found for internal port

For every router interface added to a router
with a default gateway there will be an internal
SNAT port generated and will be required by the
L3 Agent to process the SNAT rules.

This bug was introduced by the change ID below
Icc099c1a97e3e68eeaf4690bc83167ba30d8099a.

When the gateway is removed these ports have to
be removed from the namespace. These ports are
cached in the router_info and should be provided
to the get_snat_port_for_internal_port function
when called from external_gateway_removed or when
called from _dvr_internal_network_removed.

This patch fixes this problem.

Closes-Bug: #1496578

Change-Id: Id5af4774ba246e24f343f5623af5ea9143bd5f6b
neutron/agent/l3/dvr_local_router.py
neutron/agent/l3/dvr_router_base.py
neutron/tests/unit/agent/l3/test_agent.py