rehome pagination api definition
This patch rehomes neutron's pagination extension's API definition into neutron-lib. UTs and a release note are also included. Change-Id: I5b844cd834900ac5de53df490fef239154cc903c
This commit is contained in:
parent
8c400f893a
commit
1d85fc0258
neutron_lib
releasenotes/notes
@ -29,6 +29,7 @@ from neutron_lib.api.definitions import logging
|
|||||||
from neutron_lib.api.definitions import logging_resource
|
from neutron_lib.api.definitions import logging_resource
|
||||||
from neutron_lib.api.definitions import network
|
from neutron_lib.api.definitions import network
|
||||||
from neutron_lib.api.definitions import network_mtu
|
from neutron_lib.api.definitions import network_mtu
|
||||||
|
from neutron_lib.api.definitions import pagination
|
||||||
from neutron_lib.api.definitions import port
|
from neutron_lib.api.definitions import port
|
||||||
from neutron_lib.api.definitions import port_security
|
from neutron_lib.api.definitions import port_security
|
||||||
from neutron_lib.api.definitions import portbindings
|
from neutron_lib.api.definitions import portbindings
|
||||||
@ -60,6 +61,7 @@ _ALL_API_DEFINITIONS = {
|
|||||||
logging_resource,
|
logging_resource,
|
||||||
network,
|
network,
|
||||||
network_mtu,
|
network_mtu,
|
||||||
|
pagination,
|
||||||
port,
|
port,
|
||||||
port_security,
|
port_security,
|
||||||
portbindings,
|
portbindings,
|
||||||
|
27
neutron_lib/api/definitions/pagination.py
Normal file
27
neutron_lib/api/definitions/pagination.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 = 'pagination'
|
||||||
|
IS_SHIM_EXTENSION = True
|
||||||
|
IS_STANDARD_ATTR_EXTENSION = False
|
||||||
|
NAME = 'Pagination support'
|
||||||
|
API_PREFIX = ''
|
||||||
|
DESCRIPTION = 'Extension that indicates that pagination 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_pagination.py
Normal file
18
neutron_lib/tests/unit/api/definitions/test_pagination.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 pagination
|
||||||
|
from neutron_lib.tests.unit.api.definitions import base
|
||||||
|
|
||||||
|
|
||||||
|
class PaginationDefinitionTestCase(base.DefinitionBaseTestCase):
|
||||||
|
extension_module = pagination
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- The ``pagination`` API extension's API definition is now available in
|
||||||
|
``neutron_lib.api.definitions.pagination``.
|
Loading…
x
Reference in New Issue
Block a user