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:
Boden R 2017-08-17 13:11:22 -06:00
parent 8c400f893a
commit 1d85fc0258
4 changed files with 51 additions and 0 deletions

View File

@ -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 network
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_security
from neutron_lib.api.definitions import portbindings
@ -60,6 +61,7 @@ _ALL_API_DEFINITIONS = {
logging_resource,
network,
network_mtu,
pagination,
port,
port_security,
portbindings,

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

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 pagination
from neutron_lib.tests.unit.api.definitions import base
class PaginationDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = pagination

View File

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