neutron/neutron/tests/unit/agent/l3
Slawek Kaplonski 512e5fa8ed 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:53:48 +00:00
..
extensions Not process port forwarding if no snat functionality 2019-04-30 01:39:38 +00: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:53:48 +00:00
test_dvr_fip_ns.py DVR: Correctly change MTU in fip namespace 2019-04-12 19:17:30 +00:00
test_dvr_local_router.py Ensure fip ip rules deleted when fip removed 2020-09-08 16:06:16 +01:00
test_dvr_snat_ns.py Switch ip link command to pyroute2 2018-03-24 22:42:00 +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:36:32 +00:00
test_item_allocator.py DVR: Check for item_allocator key before releasing 2018-04-04 11:47:41 -07:00
test_l3_agent_extension_api.py Add iptables metadata marking rule on router init 2017-12-19 10:07:33 -05: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-07 15:49:59 +01:00