From 6fb2f513da3e7f5b258726f187f14fbfec71c427 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Thu, 27 May 2021 11:54:08 +0200 Subject: [PATCH] [OVN] Add 'port-mac-address-regenerate' to the supported extensions In fact this API extension is independent of the mech driver and should be listed as supported by the OVN mech driver to not be filtered out from the list of actually available extensions. Related-Bug: #1929676 Change-Id: Ie2d5c52ce09b1b366717830f0af53f26366ee4b8 --- doc/source/admin/ovn/features.rst | 120 +++++++++++++++--------------- neutron/common/ovn/extensions.py | 2 + 2 files changed, 63 insertions(+), 59 deletions(-) diff --git a/doc/source/admin/ovn/features.rst b/doc/source/admin/ovn/features.rst index d875e47b94a..08beb96d77e 100644 --- a/doc/source/admin/ovn/features.rst +++ b/doc/source/admin/ovn/features.rst @@ -73,62 +73,64 @@ services: The following Neutron API extensions are supported with OVN: -+----------------------------------+---------------------------+ -| Extension Name | Extension Alias | -+==================================+===========================+ -| Allowed Address Pairs | allowed-address-pairs | -+----------------------------------+---------------------------+ -| Auto Allocated Topology Services | auto-allocated-topology | -+----------------------------------+---------------------------+ -| Availability Zone | availability_zone | -+----------------------------------+---------------------------+ -| Default Subnetpools | default-subnetpools | -+----------------------------------+---------------------------+ -| Domain Name System (DNS) | dns_integration | -+----------------------------------+---------------------------+ -| Multi Provider Network | multi-provider | -+----------------------------------+---------------------------+ -| Network IP Availability | network-ip-availability | -+----------------------------------+---------------------------+ -| Network Segment | segment | -+----------------------------------+---------------------------+ -| Neutron external network | external-net | -+----------------------------------+---------------------------+ -| Neutron Extra DHCP opts | extra_dhcp_opt | -+----------------------------------+---------------------------+ -| Neutron Extra Route | extraroute | -+----------------------------------+---------------------------+ -| Neutron L3 external gateway | ext-gw-mode | -+----------------------------------+---------------------------+ -| Neutron L3 Router | router | -+----------------------------------+---------------------------+ -| Network MTU | net-mtu | -+----------------------------------+---------------------------+ -| Packet Logging | logging | -+----------------------------------+---------------------------+ -| Port Binding | binding | -+----------------------------------+---------------------------+ -| Port Forwarding | port_forwarding | -+----------------------------------+---------------------------+ -| Port Security | port-security | -+----------------------------------+---------------------------+ -| Provider Network | provider | -+----------------------------------+---------------------------+ -| Quality of Service | qos | -+----------------------------------+---------------------------+ -| Quota management support | quotas | -+----------------------------------+---------------------------+ -| RBAC Policies | rbac-policies | -+----------------------------------+---------------------------+ -| Resource revision numbers | standard-attr-revisions | -+----------------------------------+---------------------------+ -| security-group | security-group | -+----------------------------------+---------------------------+ -| standard-attr-description | standard-attr-description | -+----------------------------------+---------------------------+ -| Subnet Allocation | subnet_allocation | -+----------------------------------+---------------------------+ -| Tag support | standard-attr-tag | -+----------------------------------+---------------------------+ -| Time Stamp Fields | standard-attr-timestamp | -+----------------------------------+---------------------------+ ++----------------------------------+-----------------------------+ +| Extension Name | Extension Alias | ++==================================+=============================+ +| Allowed Address Pairs | allowed-address-pairs | ++----------------------------------+-----------------------------+ +| Auto Allocated Topology Services | auto-allocated-topology | ++----------------------------------+-----------------------------+ +| Availability Zone | availability_zone | ++----------------------------------+-----------------------------+ +| Default Subnetpools | default-subnetpools | ++----------------------------------+-----------------------------+ +| Domain Name System (DNS) | dns_integration | ++----------------------------------+-----------------------------+ +| Multi Provider Network | multi-provider | ++----------------------------------+-----------------------------+ +| Network IP Availability | network-ip-availability | ++----------------------------------+-----------------------------+ +| Network Segment | segment | ++----------------------------------+-----------------------------+ +| Neutron external network | external-net | ++----------------------------------+-----------------------------+ +| Neutron Extra DHCP opts | extra_dhcp_opt | ++----------------------------------+-----------------------------+ +| Neutron Extra Route | extraroute | ++----------------------------------+-----------------------------+ +| Neutron L3 external gateway | ext-gw-mode | ++----------------------------------+-----------------------------+ +| Neutron L3 Router | router | ++----------------------------------+-----------------------------+ +| Network MTU | net-mtu | ++----------------------------------+-----------------------------+ +| Packet Logging | logging | ++----------------------------------+-----------------------------+ +| Port Binding | binding | ++----------------------------------+-----------------------------+ +| Port Forwarding | port_forwarding | ++----------------------------------+-----------------------------+ +| Port MAC address Regenerate | port-mac-address-regenerate | ++----------------------------------+-----------------------------+ +| Port Security | port-security | ++----------------------------------+-----------------------------+ +| Provider Network | provider | ++----------------------------------+-----------------------------+ +| Quality of Service | qos | ++----------------------------------+-----------------------------+ +| Quota management support | quotas | ++----------------------------------+-----------------------------+ +| RBAC Policies | rbac-policies | ++----------------------------------+-----------------------------+ +| Resource revision numbers | standard-attr-revisions | ++----------------------------------+-----------------------------+ +| security-group | security-group | ++----------------------------------+-----------------------------+ +| standard-attr-description | standard-attr-description | ++----------------------------------+-----------------------------+ +| Subnet Allocation | subnet_allocation | ++----------------------------------+-----------------------------+ +| Tag support | standard-attr-tag | ++----------------------------------+-----------------------------+ +| Time Stamp Fields | standard-attr-timestamp | ++----------------------------------+-----------------------------+ diff --git a/neutron/common/ovn/extensions.py b/neutron/common/ovn/extensions.py index 4dbcc326591..767cda6d851 100644 --- a/neutron/common/ovn/extensions.py +++ b/neutron/common/ovn/extensions.py @@ -36,6 +36,7 @@ from neutron_lib.api.definitions import network_mtu from neutron_lib.api.definitions import network_mtu_writable from neutron_lib.api.definitions import pagination from neutron_lib.api.definitions import port_device_profile +from neutron_lib.api.definitions import port_mac_address_regenerate from neutron_lib.api.definitions import port_numa_affinity_policy from neutron_lib.api.definitions import port_resource_request from neutron_lib.api.definitions import port_security @@ -94,6 +95,7 @@ ML2_SUPPORTED_API_EXTENSIONS = [ network_availability_zone.ALIAS, network_ip_availability.ALIAS, port_device_profile.ALIAS, + port_mac_address_regenerate.ALIAS, port_numa_affinity_policy.ALIAS, port_security.ALIAS, provider_net.ALIAS,