rehome revisionifmatch api def

This patch rehomes the revisionifmatch extension's API definition into
neutron-lib.

Change-Id: I46e30079bc0708b7f55d404c262226cf986e5b66
This commit is contained in:
Boden R 2017-11-30 13:15:14 -07:00 committed by Ihar Hrachyshka
parent 76d885286f
commit f38df80ca5
4 changed files with 51 additions and 0 deletions

View File

@ -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,

View 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 = {}

View File

@ -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

View File

@ -0,0 +1,4 @@
---
features:
- The ``revision-if-match`` extension's API definition is now available in
``neutron_lib.api.definitions.revisionifmatch``.