neutron/neutron/tests/unit/objects
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
..
db Finish the new DB engine facade migration 2020-11-24 09:20:35 +00:00
logapi Enable an update test in UT of logging 2017-07-07 12:01:49 +09:00
plugins Randomize segmentation ID assignation 2021-03-24 13:56:09 +00:00
port Add port NUMA affinity policy 2020-11-13 15:49:34 +00:00
qos [OVN] Implement GW IP network QoS inheritance 2022-04-15 01:10:31 +00:00
__init__.py objects.base: avoid db access if object does not have changes 2015-07-03 02:02:17 +03:00
test_address_group.py Allow sharing of address groups via RBAC mechanism 2021-03-01 18:28:31 -06:00
test_address_scope.py Allow sharing of address scopes via RBAC mechanism 2020-03-19 16:51:39 +02:00
test_agent.py New agent attribute: resources_synced 2019-02-21 13:45:15 +01:00
test_auto_allocate.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_base.py Fix remaining typos in comments and tests 2022-07-06 21:20:27 +05:30
test_conntrack_helper.py Conntrack Helper - OVO and db script 2019-05-20 18:00:18 +02:00
test_flavor.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_floatingip.py Refactoring _create_test methods for OVO UTs 2017-04-17 12:05:19 -07:00
test_ipam.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_l3_hamode.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_l3agent.py Add specific values to specific fields in get_random_object_fields() 2017-07-25 15:16:25 +09:00
test_local_ip.py Add Local IP Extension and DB 2021-11-11 10:08:23 +03:00
test_metering.py Metering to OVO 2017-04-26 11:44:58 -07:00
test_ndp_proxy.py [Server Side] L3 router support ndp proxy 2022-02-03 10:07:46 +08:00
test_network.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_network_segment_range.py Make phynet paramter also is optional when network_segment_range enabled 2021-05-16 09:10:59 +00:00
test_objects.py Add validation to ip_version field 2022-09-02 16:29:13 +00:00
test_port_forwarding.py Extend database to support portforwardings with port range 2022-03-15 09:10:23 -03:00
test_ports.py Script to remove duplicated port bindings 2022-08-18 08:13:56 +00:00
test_provisioning_blocks.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_quota.py Fix openstack-tox-py39-with-oslo-master job 2022-09-20 10:54:36 -05:00
test_rbac.py Allow sharing of address groups via RBAC mechanism 2021-03-01 18:28:31 -06:00
test_rbac_db.py Add the corresponding DB context to all SQL transactions 2022-04-08 09:09:54 +00:00
test_router.py Always create a "router_extra_attributes" register per router 2022-11-18 08:51:43 +00:00
test_securitygroup.py Add normalized_cidr column to SG rules 2021-01-07 12:23:59 +01:00
test_servicetype.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_subnet.py Optimize queries for port operations 2022-06-13 10:30:11 +02:00
test_subnetpool.py Replace "target_tenant" with "target_project" in RBAC OVOs and models 2021-12-03 10:48:57 +00:00
test_tag.py Refactoring _create_test methods for OVO UTs 2017-04-17 12:05:19 -07:00
test_trunk.py Remove OVO unneeded compatibility conversions 2020-06-03 17:15:31 +00:00