Extension for tagging ports during bulk creation

Define a shim API extension to support the tagging of ports during bulk
creation.

Change-Id: I69904a235121876a14dbb3e4cf1beac614dcd5e9
Related-Bug: #1815933
This commit is contained in:
Miguel Lavalle 2019-12-29 18:48:48 -06:00
parent 79cd582084
commit 8673f03319
4 changed files with 53 additions and 0 deletions

View File

@ -107,6 +107,7 @@ from neutron_lib.api.definitions import subnet_segmentid_writable
from neutron_lib.api.definitions import subnet_service_types
from neutron_lib.api.definitions import subnetpool
from neutron_lib.api.definitions import subnetpool_prefix_ops
from neutron_lib.api.definitions import tag_ports_during_bulk_creation
from neutron_lib.api.definitions import trunk
from neutron_lib.api.definitions import trunk_details
from neutron_lib.api.definitions import uplink_status_propagation
@ -214,6 +215,7 @@ _ALL_API_DEFINITIONS = {
subnet_service_types,
subnetpool,
subnetpool_prefix_ops,
tag_ports_during_bulk_creation,
trunk,
trunk_details,
uplink_status_propagation,

View File

@ -0,0 +1,28 @@
# Copyright (c) 2019 Verizon Media
# 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.
ALIAS = 'tag-ports-during-bulk-creation'
IS_SHIM_EXTENSION = True
IS_STANDARD_ATTR_EXTENSION = False
NAME = 'Tag Ports During Bulk Creation'
DESCRIPTION = 'Allow to tag ports during bulk creation'
UPDATED_TIMESTAMP = '2019-12-29T19:00:00-00:00'
RESOURCE_ATTRIBUTE_MAP = {}
SUB_RESOURCE_ATTRIBUTE_MAP = {}
ACTION_MAP = {}
REQUIRED_EXTENSIONS = []
OPTIONAL_EXTENSIONS = []
ACTION_STATUS = {}

View File

@ -0,0 +1,19 @@
# 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 tag_ports_during_bulk_creation
from neutron_lib.tests.unit.api.definitions import base
class TagPortsDuringBulkCreationDefinitionTestCase(
base.DefinitionBaseTestCase):
extension_module = tag_ports_during_bulk_creation

View File

@ -0,0 +1,4 @@
---
features:
- The ``tag-ports-during-bulk-creation`` shim extension API definition has
been added to enable the tagging of ports during bulk creation.