neutron/neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb
Rodolfo Alonso Hernandez 7efce62b4f [OVN] Update the DHCP options when the metadata port is modified
Always update the DHCP options when the metadata port is created,
updated or deleted. If the metadata port IP addresses are updated,
the DHCP options register should be too, modifying the static routes
defined in "DHCP_Options.options.classless_static_route".

These static routes will be injected in the VM in the DHCP request.
The IP address of the metadata port should match with the static
route redirecting the traffic to the metadata IP address
"169.254.169.254/32":

  $ ip r
  default via 10.0.0.1 dev eth0
  10.0.0.0/28 dev eth0 scope link  src 10.0.0.7
  169.254.169.254 via 10.0.0.2 dev eth0  # 10.0.0.2 is the metadata
                                         # port IP address
Conflicts:
      neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
      neutron/tests/unit/fake_resources.py

Closes-Bug: #1942794
Change-Id: Id5d4909caa521a899b97d83bdc1963b010e97dac
(cherry picked from commit bd0ded15ca)
2021-10-11 10:30:51 +00:00
..
extensions [OVN] External ports (SR-IOV) QoS is handled by SR-IOV agent 2021-03-31 14:11:12 +00:00
schemas [OVN] Import ovsdb related code (part 2) 2019-12-09 10:07:28 +00:00
__init__.py [OVN] Import ovsdb related code 2019-12-04 13:18:50 +00:00
test_commands.py Remove some unnecessary usages of verify() 2020-07-22 18:15:13 +00:00
test_impl_idl_ovn.py [OVN] Update the DHCP options when the metadata port is modified 2021-10-11 10:30:51 +00:00
test_maintenance.py [OVN] Disable mcast_flood on localnet ports 2021-06-24 09:31:41 +01:00
test_ovn_db_sync.py [OVN] Set send_periodic to False on provider networks 2021-03-18 10:19:15 +00:00
test_ovsdb_monitor.py Replace assertItemsEqual with assertCountEqual 2021-08-24 10:00:56 +00:00