neutron/neutron/tests/unit/extensions
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
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py [quota] Enable ``DbQuotaDriverNull`` as a production driver 2022-04-05 10:10:46 +00:00
extendedattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
extensionattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
foxinsocks.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
test_address_group.py Support address group in OVS firewall agent 2021-02-08 13:28:06 -06:00
test_address_scope.py [test][unit]creating resources support set project_id 2022-03-28 05:41:48 +00:00
test_agent.py Deprecate 'allow_overlapping_ips' config option 2021-10-21 10:56:33 +00:00
test_availability_zone.py "default_availability_zones" need to be considered when validate az 2021-08-16 00:14:49 +00:00
test_data_plane_status.py Switch to new engine facade in extensions unit tests 2020-03-20 06:28:46 +01:00
test_default_subnetpools.py Fix dhcpv6-statefull typo 2020-05-01 10:50:37 -04:00
test_dns.py Deprecate 'allow_overlapping_ips' config option 2021-10-21 10:56:33 +00:00
test_expose_port_forwarding_in_fip.py [api]adds port_forwarding id when list floatingip 2022-08-26 08:45:09 +08:00
test_external_net.py Replace "target_tenant" with "target_project" in RBAC OVOs and models 2021-12-03 10:48:57 +00:00
test_extra_dhcp_opt.py Switch to new engine facade in extensions unit tests 2020-03-20 06:28:46 +01:00
test_extraroute.py Deprecate 'allow_overlapping_ips' config option 2021-10-21 10:56:33 +00:00
test_fip_port_details.py Deprecate 'allow_overlapping_ips' config option 2021-10-21 10:56:33 +00:00
test_flavors.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_floating_ip_port_forwarding.py Extend database to support portforwardings with port range 2022-03-15 09:10:23 -03:00
test_floatingip_pools.py Deprecate 'allow_overlapping_ips' config option 2021-10-21 10:56:33 +00:00
test_l3.py Always create a "router_extra_attributes" register per router 2022-11-18 08:51:43 +00:00
test_l3_conntrack_helper.py Add extension unit tests for conntrack_helper plugin 2021-02-06 02:36:22 +00:00
test_l3_ext_gw_mode.py [OVN] Implement GW IP network QoS inheritance 2022-04-15 01:10:31 +00:00
test_l3_ndp_proxy.py Forbid enable ndp proxy when external netwrok has no IPv6 address scope 2022-09-06 18:45:45 +08:00
test_local_ip.py Add Local IP policy rules 2022-01-12 17:33:41 +03:00
test_network_ip_availability.py Add pagging and sorting support for "network_ip_availability" 2021-09-02 16:51:08 +02:00
test_network_segment_range.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_port_device_profile.py Add port device profile extension 2021-01-22 16:17:30 +00:00
test_port_numa_affinity_policy.py Rename PortNumaAffinityPolicyExtensionTestPlugin 2020-12-18 11:43:04 +00:00
test_portsecurity.py Merge "Remove unneeded contexts in ``_create_port_security_group_binding``" 2022-06-17 19:21:38 +00:00
test_providernet.py [quota] Enable ``DbQuotaDriverNull`` as a production driver 2022-04-05 10:10:46 +00:00
test_qos_fip.py Adopt rehomed QoS FIP extension from neutron-lib 2.18.0 2021-12-23 06:02:00 +00:00
test_qos_gateway_ip.py [L3][QoS] Remove router QoS binding when GW is removed 2022-03-22 18:02:43 +00:00
test_quotasv2.py [quota] Enable ``DbQuotaDriverNull`` as a production driver 2022-04-05 10:10:46 +00:00
test_quotasv2_detail.py Replace "tenant_id" with "project_id" in Quota engine 2021-09-22 08:27:10 +00:00
test_router_availability_zone.py "default_availability_zones" need to be considered when validate az 2021-08-16 00:14:49 +00:00
test_security_groups_normalized_cidr.py Add normalized_cidr column to SG rules 2021-01-07 12:23:59 +01:00
test_securitygroup.py Start using security-groups-shared-filtering from neutron-lib 2022-05-19 12:51:15 -04:00
test_segment.py Implement experimental features framework 2022-06-30 17:59:49 -05:00
test_servicetype.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_subnet_dns_publish_fixed_ip.py Allow to select subnets to publish DNS records 2019-12-14 13:36:09 +00:00
test_subnet_onboard.py [test][unit]creating resources support set project_id 2022-03-28 05:41:48 +00:00
test_subnet_service_types.py Use neutron-lib subnet-service-types API def ALIAS in _supported_extension_aliases 2022-04-26 16:06:34 +00:00
test_subnetpool_prefix_ops.py Remove some unnecessary list comprehensions 2022-10-05 17:11:45 -04:00
test_timestamp.py Remove "six" library 2020-07-28 16:55:52 +00:00
test_uplink_status_propagation.py Switch to new enginefacade in uplink_status_propagation UT module 2020-08-27 22:28:16 +02:00
test_vlantransparent.py [quota] Enable ``DbQuotaDriverNull`` as a production driver 2022-04-05 10:10:46 +00:00
v2attributes.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00