rehome sorting api def
This patch rehomes the sorting extension's API definition into neutron_lib. Change-Id: I3349b83bc04b82ed333cb6560bbc5d41a7127e94
This commit is contained in:
@@ -58,6 +58,7 @@ from neutron_lib.api.definitions import qos_default
|
||||
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
|
||||
from neutron_lib.api.definitions import sorting
|
||||
from neutron_lib.api.definitions import subnet
|
||||
from neutron_lib.api.definitions import subnet_onboard
|
||||
from neutron_lib.api.definitions import subnetpool
|
||||
@@ -114,6 +115,7 @@ _ALL_API_DEFINITIONS = {
|
||||
router_availability_zone,
|
||||
router_interface_fip,
|
||||
servicetype,
|
||||
sorting,
|
||||
subnet,
|
||||
subnet_onboard,
|
||||
subnetpool,
|
||||
|
||||
26
neutron_lib/api/definitions/sorting.py
Normal file
26
neutron_lib/api/definitions/sorting.py
Normal file
@@ -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 = 'sorting'
|
||||
IS_SHIM_EXTENSION = True
|
||||
IS_STANDARD_ATTR_EXTENSION = False
|
||||
NAME = 'Sorting support'
|
||||
API_PREFIX = ''
|
||||
DESCRIPTION = 'Extension that indicates that sorting is enabled.'
|
||||
UPDATED_TIMESTAMP = '2016-06-12T00:00:00-00:00'
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {}
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = []
|
||||
OPTIONAL_EXTENSIONS = []
|
||||
ACTION_STATUS = {}
|
||||
18
neutron_lib/tests/unit/api/definitions/test_sorting.py
Normal file
18
neutron_lib/tests/unit/api/definitions/test_sorting.py
Normal 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 sorting
|
||||
from neutron_lib.tests.unit.api.definitions import base
|
||||
|
||||
|
||||
class SortingDefinitionTestCase(base.DefinitionBaseTestCase):
|
||||
extension_module = sorting
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- The ``sorting`` extension's API definition is now available in
|
||||
``neutron_lib.api.definitions.sorting``.
|
||||
Reference in New Issue
Block a user