neutron/neutron/tests/unit
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
..
agent Merge "Remove dhcp_extra_opt name after first newline character" into stable/wallaby 2021-10-04 18:50:39 +00:00
api Replace assertItemsEqual with assertCountEqual 2021-08-24 10:00:56 +00:00
cmd Added common config and SR-IOV agent config to sanity check 2021-06-11 14:33:31 +00:00
common [OVN] Set NB/SB "connection" inactivity probe 2021-10-04 08:44:54 +00:00
conf Merge "Modify create address scope policy rule and add UT for that API" into stable/wallaby 2021-04-01 23:57:27 +00:00
core_extensions Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
db Replace assertItemsEqual with assertCountEqual 2021-08-24 10:00:56 +00:00
debug Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
extensions Replace assertItemsEqual with assertCountEqual 2021-08-24 10:00:56 +00:00
hacking Remove "six" library 2020-07-28 16:55:52 +00:00
ipam Allow to manually define the gateway IP when using subnet pools 2021-02-27 10:06:35 +00:00
notifiers Add config option ``http_retries`` 2020-06-29 22:07:46 -04:00
objects Replace assertItemsEqual with assertCountEqual 2021-08-24 10:00:56 +00:00
pecan_wsgi Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
plugins [OVN] Update the DHCP options when the metadata port is modified 2021-10-11 10:30:51 +00:00
privileged Migrate "netstat" to oslo.privsep 2020-06-19 14:59:11 +00:00
quota Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
scheduler Replace assertItemsEqual with assertCountEqual 2021-08-24 10:00:56 +00:00
services Replace assertItemsEqual with assertCountEqual 2021-08-24 10:00:56 +00:00
tests Replace assertItemsEqual with assertCountEqual 2021-08-24 10:00:56 +00:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py Remove "six" library 2020-07-28 16:55:52 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py Consume ServicePluginBase from neutron-lib 2017-03-17 12:06:57 -06:00
fake_resources.py [OVN] Update the DHCP options when the metadata port is modified 2021-10-11 10:30:51 +00:00
test_auth.py Fix context deprecation warnings 2018-02-13 15:02:49 -05:00
test_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-14 14:00:35 +00:00
test_policy.py Always perform policy checks if enforce_new_defaults == true 2021-03-18 08:51:00 +01:00
test_service.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_worker.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_wsgi.py Remove "six" library 2020-07-28 16:55:52 +00:00
testlib_api.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00