rehome revisionifmatch api def
This patch rehomes the revisionifmatch extension's API definition into neutron-lib. Change-Id: I46e30079bc0708b7f55d404c262226cf986e5b66
This commit is contained in:
parent
76d885286f
commit
f38df80ca5
@ -57,6 +57,7 @@ from neutron_lib.api.definitions import provider_net
|
||||
from neutron_lib.api.definitions import qos
|
||||
from neutron_lib.api.definitions import qos_default
|
||||
from neutron_lib.api.definitions import qos_rule_type_details
|
||||
from neutron_lib.api.definitions import revisionifmatch
|
||||
from neutron_lib.api.definitions import router_availability_zone
|
||||
from neutron_lib.api.definitions import router_interface_fip
|
||||
from neutron_lib.api.definitions import servicetype
|
||||
@ -117,6 +118,7 @@ _ALL_API_DEFINITIONS = {
|
||||
qos,
|
||||
qos_default,
|
||||
qos_rule_type_details,
|
||||
revisionifmatch,
|
||||
router_availability_zone,
|
||||
router_interface_fip,
|
||||
servicetype,
|
||||
|
27
neutron_lib/api/definitions/revisionifmatch.py
Normal file
27
neutron_lib/api/definitions/revisionifmatch.py
Normal file
@ -0,0 +1,27 @@
|
||||
# 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 = 'revision-if-match'
|
||||
IS_SHIM_EXTENSION = True
|
||||
IS_STANDARD_ATTR_EXTENSION = False
|
||||
NAME = 'If-Match constraints based on revision_number'
|
||||
API_PREFIX = ''
|
||||
DESCRIPTION = ("Extension indicating that If-Match based on revision_number "
|
||||
"is supported.")
|
||||
UPDATED_TIMESTAMP = '2016-12-11T00:00:00-00:00'
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {}
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = ['standard-attr-revisions']
|
||||
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 revisionifmatch
|
||||
from neutron_lib.tests.unit.api.definitions import base
|
||||
|
||||
|
||||
class RevisionIfMatchDefinitionTestCase(base.DefinitionBaseTestCase):
|
||||
extension_module = revisionifmatch
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- The ``revision-if-match`` extension's API definition is now available in
|
||||
``neutron_lib.api.definitions.revisionifmatch``.
|
Loading…
Reference in New Issue
Block a user