neutron/neutron/tests/unit
Rodolfo Alonso Hernandez 2081910d6d Always create a "router_extra_attributes" register per router
The table "router_extra_attributes" is a child of "router" table.
Each register contains extra information that completes the router
description. When using ML2/OVS mechanism driver, the methods that
create and populate the "router_extra_attributes" register are always
called from the L3 DVR, L3 HA and availability zones extensions.

When using ML2/OVN, those extensions are not loaded and therefore the
"router_extra_attributes" register is not created.

Despite this register is currently not used in ML2/OVN (it will be in
future features), there are some project expecting the
"router_extra_attributes" register to be always created (for example,
neutron-dynamic-routing [1]).

This patch enforces the child register creating always when a router is
created. This register is populated with the default values. This new
register does not affect any current operation related to ML2/OVN nor
ML2/OVS.

There is a 1:1 relationship between "routers" and
"router_extra_attributes". The child register is deleted by the database
engine when the "routers" register is deleted (ondelete="CASCADE").

[1]https://review.opendev.org/c/openstack/neutron-dynamic-routing/+/863713

Closes-Bug: #1995974
Change-Id: Ic546e40513402fa101c9687acce382cd6b84356c
2022-11-18 08:51:43 +00:00
..
agent dhcp: support multiple segmentations per network 2022-10-27 09:30:33 +02:00
api dhcp/rpc: retrieve network details with segments 2022-09-01 14:48:54 +02:00
cmd Fix remaining typos in comments and tests 2022-07-06 21:20:27 +05:30
common Merge "Revert "Since OVN 20.06, config is stored in "Chassis.other_config""" 2022-10-06 18:33:31 +00:00
conf [S-RBAC] Rename ProjectAdmin* unit tests to Admin* 2022-08-19 11:26:53 +02:00
core_extensions Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
db Always create a "router_extra_attributes" register per router 2022-11-18 08:51:43 +00:00
debug Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
extensions Always create a "router_extra_attributes" register per router 2022-11-18 08:51:43 +00:00
hacking Remove "six" library 2020-07-28 16:55:52 +00:00
ipam Remove exception ``IpAddressAllocationNotFound`` 2022-03-16 16:48:06 +00:00
notifiers Fix test_nova_send_events_* tests 2022-09-06 11:40:10 +02:00
objects Always create a "router_extra_attributes" register per router 2022-11-18 08:51:43 +00:00
pecan_wsgi Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
plugins Merge "[OVN] Allow only one physical network per bridge" 2022-10-26 14:17:56 +00:00
privileged Fix tests involving pyroute2.netlink module 2022-06-14 11:47:56 +00:00
quota Replace "tenant_id" with "project_id" in Quota engine 2021-09-22 08:27:10 +00:00
scheduler Remove some unnecessary list comprehensions 2022-10-05 17:11:45 -04:00
services Merge "[Trunk] Update the trunk status with the parent status" 2022-10-27 12:42:04 +00:00
tests Merge "Replace assertItemsEqual with assertCountEqual" 2021-04-26 19:12:38 +00:00
__init__.py
_test_extension_portbindings.py Deprecate 'allow_overlapping_ips' config option 2021-10-21 10:56:33 +00:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py
fake_resources.py Revert "Since OVN 20.06, config is stored in "Chassis.other_config"" 2022-10-06 15:33:06 +00:00
test_auth.py Fix deprecation warnings about oslo.context 2022-08-13 09:08:00 +00: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-06 23:56:14 +09:00
test_policy.py Fix deprecation warnings about oslo.context 2022-08-13 09:08:00 +00: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 Fix a deprecation warning about escape sequence 2022-08-13 19:03:19 +09:00
testlib_api.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00