Merge "use pagination api def from neutron-lib"
This commit is contained in:
commit
6277b4a202
|
@ -11,40 +11,17 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from neutron_lib.api.definitions import pagination as apidef
|
||||
from neutron_lib.api import extensions as api_extensions
|
||||
|
||||
from neutron.api import extensions
|
||||
|
||||
|
||||
_ALIAS = 'pagination'
|
||||
|
||||
|
||||
class Pagination(api_extensions.ExtensionDescriptor):
|
||||
class Pagination(api_extensions.APIExtensionDescriptor):
|
||||
"""Fake extension that indicates that pagination is enabled."""
|
||||
|
||||
api_definition = apidef
|
||||
|
||||
extensions.register_custom_supported_check(
|
||||
_ALIAS, lambda: True, plugin_agnostic=True
|
||||
apidef.ALIAS, lambda: True, plugin_agnostic=True
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def get_name(cls):
|
||||
return "Pagination support"
|
||||
|
||||
@classmethod
|
||||
def get_alias(cls):
|
||||
return _ALIAS
|
||||
|
||||
@classmethod
|
||||
def get_description(cls):
|
||||
return "Extension that indicates that pagination is enabled."
|
||||
|
||||
@classmethod
|
||||
def get_updated(cls):
|
||||
return "2016-06-12T00:00:00-00:00"
|
||||
|
||||
@classmethod
|
||||
def get_resources(cls):
|
||||
return []
|
||||
|
||||
def get_extended_resources(self, version):
|
||||
return {}
|
||||
|
|
Loading…
Reference in New Issue