neutron/neutron/tests/functional/agent/l3
Slawek Kaplonski 763a65d963 [DVR] Fix update of the MTU in the SNAT namespace
When network's MTU is changed, Neutron sends notification about it
to the L3 agents. In case of DVR (and DVR HA) MTU is then changed in
the qrouter- namespace but should be also changed on snat interfaces
in the snat namespace. And that part was missing.

This patch adds special implementation of the internal_network_updated()
method in the DvrEdgeRouter class so it can configure MTU also for
in the snat namespace.

This patch also removed passing attributes "interface_name",
"ip_cidrs" and "mtu" to the internal_network_updated() method and adds
"port" dict to be passed there. It is consistent with what is already
done in e.g. internal_network_added() method and "port" dict is actually
necessary to configure properly snat internal interface in the snat
namespace.

This patch adds also functional test of update network mtu for all types
of routers as there was no such test at all.

There is additional issue with DVR-HA which isn't fixed with that patch
and for which follow up will be proposed. Because of that this patch is
marked as partial fix for the related bug.

Conflicts:
    neutron/tests/functional/agent/l3/test_dvr_router.py

Related-Bug: #1933273
Change-Id: I200acfcaaae7f056ea9a563fead9ff2de8464971
(cherry picked from commit b5dd6efdca)
2021-10-13 12:34:45 +00:00
..
bin Replace "ip monitor" command with Pyroute2 implementation 2019-12-08 22:38:45 +00:00
extensions Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
__init__.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
framework.py [DVR] Check if SNAT iptables manager is initialized 2021-10-08 15:34:46 +00:00
test_dvr_router.py [DVR] Fix update of the MTU in the SNAT namespace 2021-10-13 12:34:45 +00:00
test_ha_router.py [DVR] Fix update of the MTU in the SNAT namespace 2021-10-13 12:34:45 +00:00
test_keepalived_state_change.py Read keepalived initial state in parallel to interface monitoring 2021-06-18 07:33:51 +00:00
test_legacy_router.py [DVR] Fix update of the MTU in the SNAT namespace 2021-10-13 12:34:45 +00:00
test_metadata_proxy.py Use metadata constants from n-lib 2020-09-04 15:08:30 +00:00
test_namespace_manager.py Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00