neutron/neutron/tests/unit/agent/l3
Slawek Kaplonski 02ad1b7909 Fix migration from the HA to non-HA routers
In case if during switching HA router to be down, there will be any
failure, router_info will be stored in L3 agent's cache as HaRouter.
In case when next update on the router is migration to non-HA router
this is wrong class and it causes other issues, e.g. with
remove_vip_by_ip_address() which is correct only for HA routers.

This patch fixes that issue by adding check of the router's ha and
distributed flags and update local cache with new router_info class
in case if at least one of those flags don't match.

Change-Id: Ib0d3a501f88c149baea7d715c7cfe5811bc85e4f
Closes-Bug: #1892846
(cherry picked from commit 489e0ead72)
2020-11-19 10:54:15 +00:00
..
extensions [L3][QoS] Cover mixed dvr_snat and compute node dvr router 2018-05-08 20:06:00 +08:00
__init__.py Move extra routes processing to router classes 2015-02-05 10:25:45 -05:00
test_agent.py Fix migration from the HA to non-HA routers 2020-11-19 10:54:15 +00:00
test_dvr_fip_ns.py DVR: Correctly change MTU in fip namespace 2019-04-12 06:27:36 +00:00
test_dvr_local_router.py Ensure fip ip rules deleted when fip removed 2020-09-08 16:10:17 +01:00
test_dvr_snat_ns.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
test_fip_rule_priority_allocator.py Merge "Removed unnecessary setUp calls in tests" 2017-08-29 23:57:56 +00:00
test_ha_router.py Support gateway which is not in subnet CIDR in ha_router 2020-10-09 09:39:08 +00:00
test_item_allocator.py DVR: Check for item_allocator key before releasing 2018-04-06 02:37:48 +00:00
test_l3_agent_extension_api.py Add iptables metadata marking rule on router init 2018-08-31 14:28:40 +00:00
test_legacy_router.py Remove deprecated send_arp_for_ha option 2017-04-18 13:38:35 -04:00
test_link_local_allocator.py Preserve DVR FIP rule priority over Agent restarts 2015-08-12 15:52:19 -05:00
test_namespace_manager.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
test_router_info.py Fix update of ports cache in router_info class 2019-02-09 15:18:38 +00:00