Merge "Use neutron-lib definition alias in the OVN extensions"

This commit is contained in:
Zuul 2020-11-13 13:40:07 +00:00 committed by Gerrit Code Review
commit 62daa0dcbc

View File

@ -11,20 +11,43 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from neutron_lib.api.definitions import address_scope
from neutron_lib.api.definitions import agent as agent_def from neutron_lib.api.definitions import agent as agent_def
from neutron_lib.api.definitions import allowedaddresspairs
from neutron_lib.api.definitions import auto_allocated_topology
from neutron_lib.api.definitions import availability_zone as az_def from neutron_lib.api.definitions import availability_zone as az_def
from neutron_lib.api.definitions import default_subnetpools
from neutron_lib.api.definitions import dns
from neutron_lib.api.definitions import expose_port_forwarding_in_fip from neutron_lib.api.definitions import expose_port_forwarding_in_fip
from neutron_lib.api.definitions import external_net
from neutron_lib.api.definitions import extra_dhcp_opt
from neutron_lib.api.definitions import extraroute
from neutron_lib.api.definitions import fip_pf_description from neutron_lib.api.definitions import fip_pf_description
from neutron_lib.api.definitions import fip_port_details
from neutron_lib.api.definitions import floating_ip_port_forwarding from neutron_lib.api.definitions import floating_ip_port_forwarding
from neutron_lib.api.definitions import l3
from neutron_lib.api.definitions import l3_ext_gw_mode
from neutron_lib.api.definitions import multiprovidernet
from neutron_lib.api.definitions import network_availability_zone
from neutron_lib.api.definitions import network_ip_availability
from neutron_lib.api.definitions import network_mtu
from neutron_lib.api.definitions import pagination
from neutron_lib.api.definitions import port_resource_request from neutron_lib.api.definitions import port_resource_request
from neutron_lib.api.definitions import port_security
from neutron_lib.api.definitions import portbindings
from neutron_lib.api.definitions import project_id
from neutron_lib.api.definitions import provider_net
from neutron_lib.api.definitions import qos from neutron_lib.api.definitions import qos
from neutron_lib.api.definitions import qos_bw_limit_direction from neutron_lib.api.definitions import qos_bw_limit_direction
from neutron_lib.api.definitions import qos_default from neutron_lib.api.definitions import qos_default
from neutron_lib.api.definitions import qos_rule_type_details from neutron_lib.api.definitions import qos_rule_type_details
from neutron_lib.api.definitions import qos_rules_alias from neutron_lib.api.definitions import qos_rules_alias
from neutron_lib.api.definitions import rbac_address_scope
from neutron_lib.api.definitions import router_availability_zone as raz_def from neutron_lib.api.definitions import router_availability_zone as raz_def
from neutron_lib.api.definitions import segment as seg_def from neutron_lib.api.definitions import segment as seg_def
from neutron_lib.api.definitions import sorting
from neutron_lib.api.definitions import trunk
from neutron_lib import constants
# NOTE(russellb) This remains in its own file (vs constants.py) because we want # NOTE(russellb) This remains in its own file (vs constants.py) because we want
# to be able to easily import it and export the info without any dependencies # to be able to easily import it and export the info without any dependencies
@ -33,34 +56,34 @@ from neutron_lib.api.definitions import segment as seg_def
# NOTE(russellb) If you update these lists, please also update # NOTE(russellb) If you update these lists, please also update
# doc/source/features.rst and the current release note. # doc/source/features.rst and the current release note.
ML2_SUPPORTED_API_EXTENSIONS_OVN_L3 = [ ML2_SUPPORTED_API_EXTENSIONS_OVN_L3 = [
'router', l3.ALIAS,
'extraroute', extraroute.ALIAS,
'ext-gw-mode', l3_ext_gw_mode.ALIAS,
'fip-port-details', fip_port_details.ALIAS,
'pagination', pagination.ALIAS,
'qos-fip', 'qos-fip',
'sorting', sorting.ALIAS,
'project-id', project_id.ALIAS,
'dns-integration', dns.ALIAS,
agent_def.ALIAS, agent_def.ALIAS,
az_def.ALIAS, az_def.ALIAS,
raz_def.ALIAS, raz_def.ALIAS,
] ]
ML2_SUPPORTED_API_EXTENSIONS = [ ML2_SUPPORTED_API_EXTENSIONS = [
'address-scope', address_scope.ALIAS,
'agent', agent_def.ALIAS,
'allowed-address-pairs', allowedaddresspairs.ALIAS,
'auto-allocated-topology', auto_allocated_topology.ALIAS,
'binding', portbindings.ALIAS,
'default-subnetpools', default_subnetpools.ALIAS,
'external-net', external_net.ALIAS,
'extra_dhcp_opt', extra_dhcp_opt.ALIAS,
'multi-provider', multiprovidernet.ALIAS,
'net-mtu', network_mtu.ALIAS,
'network_availability_zone', network_availability_zone.ALIAS,
'network-ip-availability', network_ip_availability.ALIAS,
'port-security', port_security.ALIAS,
'provider', provider_net.ALIAS,
port_resource_request.ALIAS, port_resource_request.ALIAS,
qos.ALIAS, qos.ALIAS,
qos_bw_limit_direction.ALIAS, qos_bw_limit_direction.ALIAS,
@ -68,15 +91,15 @@ ML2_SUPPORTED_API_EXTENSIONS = [
qos_rule_type_details.ALIAS, qos_rule_type_details.ALIAS,
qos_rules_alias.ALIAS, qos_rules_alias.ALIAS,
'quotas', 'quotas',
'rbac-address-scope', rbac_address_scope.ALIAS,
'rbac-policies', 'rbac-policies',
'standard-attr-revisions', 'standard-attr-revisions',
'security-group', 'security-group',
'standard-attr-description', 'standard-attr-description',
'subnet_allocation', constants.SUBNET_ALLOCATION_EXT_ALIAS,
'standard-attr-tag', 'standard-attr-tag',
'standard-attr-timestamp', 'standard-attr-timestamp',
'trunk', trunk.ALIAS,
'quota_details', 'quota_details',
seg_def.ALIAS, seg_def.ALIAS,
expose_port_forwarding_in_fip.ALIAS, expose_port_forwarding_in_fip.ALIAS,