neutron/neutron/tests/functional/agent/l3
Hemanth Nakkina 8f3daf3f98 Fix deletion of rfp interfaces when router is re-enabled
1. When dvr router is disabled and enabled back, the rfp
interfaces are deleted on the nodes without snat-* namespace.
This is due to creation of snat namespace during router
initialization stage on all the nodes. At later stages, since
the gw_port_host is not bounded on this node, external gateway
is removed which triggers removal of rfp interfaces and snat
namespace.
Create snat namespace only on the nodes where gw_port_host is
bounded.

2. In case of DVR SNAT, when the l3 agent is rescheduled to
another node, the rfp interfaces on qrouter-* namespace are
removed. Instead of calling external_gateway_removed() which
further deletes the rfp interfaces, the qg-, sg- interfaces
need to be unplugged and snat namespace need to be deleted.

To resolve unit test errors after clean cherrypick, the bridge is
added to the unplug function call in external_gateway_updated.

Closes-Bug: #1894843
Change-Id: Ic35c2f9bceacec8eeba67a2b1ea0cd0b0ffc72fe
(cherry picked from commit 393d484e07)
2021-03-17 08:46:23 +00:00
..
extensions [L3][QoS] Cover mixed dvr_snat and compute node dvr router 2018-05-08 20:06:00 +08:00
__init__.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
framework.py Delay HA router transition from "backup" to "master" 2020-04-21 15:30:25 +02:00
test_dvr_router.py Fix deletion of rfp interfaces when router is re-enabled 2021-03-17 08:46:23 +00:00
test_ha_router.py Delay HA router transition from "backup" to "master" 2020-04-21 15:30:25 +02:00
test_keepalived_state_change.py Set initial ha router state in neutron-keepalived-state-change 2019-03-14 21:15:56 +00:00
test_legacy_router.py "ping"/"ping6" command support in rootwrap filters 2020-09-04 13:28:18 +00:00
test_metadata_proxy.py Switch ns-metadata-proxy to haproxy 2017-03-08 15:20:50 +00:00
test_namespace_manager.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00