Add API extensions to advertise support of std attributes for BGPVPN
Add API extensions to advertise the support of standard attributes for all resources used for BGPVPN Interconnections. Change-Id: I66ef7967f26fddbcf0af06cbacc98823ee9d6e5e Partial-Bug: 1765391
This commit is contained in:
parent
e19f408520
commit
5730aa235b
@ -17,6 +17,10 @@ from neutron_lib.api.definitions import auto_allocated_topology
|
||||
from neutron_lib.api.definitions import availability_zone
|
||||
from neutron_lib.api.definitions import bgpvpn
|
||||
from neutron_lib.api.definitions import bgpvpn_routes_control
|
||||
from neutron_lib.api.definitions import bgpvpn_stdattrs
|
||||
from neutron_lib.api.definitions import bgpvpn_stdattrs_net_assoc
|
||||
from neutron_lib.api.definitions import bgpvpn_stdattrs_port_assoc
|
||||
from neutron_lib.api.definitions import bgpvpn_stdattrs_router_assoc
|
||||
from neutron_lib.api.definitions import bgpvpn_vni
|
||||
from neutron_lib.api.definitions import data_plane_status
|
||||
from neutron_lib.api.definitions import default_subnetpools
|
||||
@ -91,6 +95,10 @@ _ALL_API_DEFINITIONS = {
|
||||
availability_zone,
|
||||
bgpvpn,
|
||||
bgpvpn_routes_control,
|
||||
bgpvpn_stdattrs,
|
||||
bgpvpn_stdattrs_net_assoc,
|
||||
bgpvpn_stdattrs_port_assoc,
|
||||
bgpvpn_stdattrs_router_assoc,
|
||||
bgpvpn_vni,
|
||||
data_plane_status,
|
||||
default_subnetpools,
|
||||
|
29
neutron_lib/api/definitions/bgpvpn_stdattrs.py
Normal file
29
neutron_lib/api/definitions/bgpvpn_stdattrs.py
Normal file
@ -0,0 +1,29 @@
|
||||
# Copyright 2018 Orange
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutron_lib.api.definitions import bgpvpn
|
||||
|
||||
ALIAS = 'standard-attr-bgpvpn'
|
||||
IS_SHIM_EXTENSION = True
|
||||
IS_STANDARD_ATTR_EXTENSION = True
|
||||
NAME = 'BGPVPN Standard Attributes'
|
||||
DESCRIPTION = 'Add standard attributes to BGPVPN resources'
|
||||
UPDATED_TIMESTAMP = '2018-04-19T10:00:00-00:00'
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {}
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = [bgpvpn.ALIAS]
|
||||
OPTIONAL_EXTENSIONS = []
|
||||
ACTION_STATUS = {}
|
29
neutron_lib/api/definitions/bgpvpn_stdattrs_net_assoc.py
Normal file
29
neutron_lib/api/definitions/bgpvpn_stdattrs_net_assoc.py
Normal file
@ -0,0 +1,29 @@
|
||||
# Copyright 2018 Orange
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutron_lib.api.definitions import bgpvpn
|
||||
|
||||
ALIAS = 'standard-attr-bgpvpn-network-association'
|
||||
IS_SHIM_EXTENSION = True
|
||||
IS_STANDARD_ATTR_EXTENSION = True
|
||||
NAME = 'BGPVPN Network Association Standard Attributes'
|
||||
DESCRIPTION = 'Add standard attributes to BGPVPN Network Association resources'
|
||||
UPDATED_TIMESTAMP = '2018-04-19T10:00:00-00:00'
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {}
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = [bgpvpn.ALIAS]
|
||||
OPTIONAL_EXTENSIONS = []
|
||||
ACTION_STATUS = {}
|
29
neutron_lib/api/definitions/bgpvpn_stdattrs_port_assoc.py
Normal file
29
neutron_lib/api/definitions/bgpvpn_stdattrs_port_assoc.py
Normal file
@ -0,0 +1,29 @@
|
||||
# Copyright 2018 Orange
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutron_lib.api.definitions import bgpvpn_routes_control
|
||||
|
||||
ALIAS = 'standard-attr-bgpvpn-port-association'
|
||||
IS_SHIM_EXTENSION = True
|
||||
IS_STANDARD_ATTR_EXTENSION = True
|
||||
NAME = 'BGPVPN Port Association Standard Attributes'
|
||||
DESCRIPTION = 'Add standard attributes to BGPVPN Port Association resources'
|
||||
UPDATED_TIMESTAMP = '2018-04-19T10:00:00-00:00'
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {}
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = [bgpvpn_routes_control.ALIAS]
|
||||
OPTIONAL_EXTENSIONS = []
|
||||
ACTION_STATUS = {}
|
29
neutron_lib/api/definitions/bgpvpn_stdattrs_router_assoc.py
Normal file
29
neutron_lib/api/definitions/bgpvpn_stdattrs_router_assoc.py
Normal file
@ -0,0 +1,29 @@
|
||||
# Copyright 2018 Orange
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutron_lib.api.definitions import bgpvpn
|
||||
|
||||
ALIAS = 'standard-attr-bgpvpn-router-association'
|
||||
IS_SHIM_EXTENSION = True
|
||||
IS_STANDARD_ATTR_EXTENSION = True
|
||||
NAME = 'BGPVPN Router Association Standard Attributes'
|
||||
DESCRIPTION = 'Add standard attributes to BGPVPN Router Association resources'
|
||||
UPDATED_TIMESTAMP = '2018-04-19T10:00:00-00:00'
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {}
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = [bgpvpn.ALIAS]
|
||||
OPTIONAL_EXTENSIONS = []
|
||||
ACTION_STATUS = {}
|
@ -0,0 +1,18 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutron_lib.api.definitions import bgpvpn_stdattrs_net_assoc
|
||||
from neutron_lib.tests.unit.api.definitions import base
|
||||
|
||||
|
||||
class BGPVPNNetAssocStdAttrDefintionTestCase(base.DefinitionBaseTestCase):
|
||||
extension_module = bgpvpn_stdattrs_net_assoc
|
@ -0,0 +1,18 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutron_lib.api.definitions import bgpvpn_stdattrs_port_assoc
|
||||
from neutron_lib.tests.unit.api.definitions import base
|
||||
|
||||
|
||||
class BGPVPNPortAssocStdAttrDefintionTestCase(base.DefinitionBaseTestCase):
|
||||
extension_module = bgpvpn_stdattrs_port_assoc
|
@ -0,0 +1,18 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutron_lib.api.definitions import bgpvpn_stdattrs_router_assoc
|
||||
from neutron_lib.tests.unit.api.definitions import base
|
||||
|
||||
|
||||
class BGPVPNRouterAssocStdAttrDefintionTestCase(base.DefinitionBaseTestCase):
|
||||
extension_module = bgpvpn_stdattrs_router_assoc
|
@ -0,0 +1,18 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutron_lib.api.definitions import bgpvpn_stdattrs
|
||||
from neutron_lib.tests.unit.api.definitions import base
|
||||
|
||||
|
||||
class BgpvpnStdAttrDefinitionTestCase(base.DefinitionBaseTestCase):
|
||||
extension_module = bgpvpn_stdattrs
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Add API extensions to advertise the support of standard attributes with
|
||||
BGPVPN resources: ``standard-attr-bgpvpn``,
|
||||
``standard-attr-bgpvpn-network-association``,
|
||||
``standard-attr-bgpvpn-router-association`` and
|
||||
``standard-attr-bgpvpn-port-association``.
|
Loading…
x
Reference in New Issue
Block a user