rehome project id api definition
This patch rehomes neutron's project id extension's API definition into neutron-lib. UTs and a release note are also included. Change-Id: Ibe69134a35d2f2927b194c8353c26b41c55c6954
This commit is contained in:
parent
dd35f4747f
commit
27c2622007
|
@ -37,6 +37,7 @@ from neutron_lib.api.definitions import port
|
|||
from neutron_lib.api.definitions import port_security
|
||||
from neutron_lib.api.definitions import portbindings
|
||||
from neutron_lib.api.definitions import portbindings_extended
|
||||
from neutron_lib.api.definitions import project_id
|
||||
from neutron_lib.api.definitions import provider_net
|
||||
from neutron_lib.api.definitions import router_availability_zone
|
||||
from neutron_lib.api.definitions import router_interface_fip
|
||||
|
@ -75,6 +76,7 @@ _ALL_API_DEFINITIONS = {
|
|||
port_security,
|
||||
portbindings,
|
||||
portbindings_extended,
|
||||
project_id,
|
||||
provider_net,
|
||||
router_availability_zone,
|
||||
router_interface_fip,
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
# 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 = 'project-id'
|
||||
IS_SHIM_EXTENSION = True
|
||||
IS_STANDARD_ATTR_EXTENSION = False
|
||||
NAME = 'project_id field enabled'
|
||||
API_PREFIX = ''
|
||||
DESCRIPTION = 'Extension that indicates that project_id field is enabled.'
|
||||
UPDATED_TIMESTAMP = '2016-09-09T09:09:09-09:09'
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {}
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = []
|
||||
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 project_id
|
||||
from neutron_lib.tests.unit.api.definitions import base
|
||||
|
||||
|
||||
class ProjectIdDefinitionTestCase(base.DefinitionBaseTestCase):
|
||||
extension_module = project_id
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
features:
|
||||
- The ``project-id`` API extension's API definition is now available in
|
||||
``neutron_lib.api.definitions.project_id``.
|
Loading…
Reference in New Issue