neutron/neutron/extensions/netmtu.py
Boden R 238fba1cd6 use net mtu api def from neutron-lib
The net mtu extension's API definition was moved into neutron-lib with
commit I41d5b399a6bd02f89f2e60c5ccb3fc0944b61255
This patch consumes it by removing the rehomed code and using the
APIExtensionDescriptor for the parent class of the extension.

NeutronLibImpact

Change-Id: I0bc7ba5e1e267183e9b440bedcdbe373e635297e
2017-11-14 14:47:47 -07:00

23 lines
845 B
Python

# Copyright 2015 OpenStack Foundation.
#
# 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 network_mtu as apidef
from neutron_lib.api import extensions
class Netmtu(extensions.APIExtensionDescriptor):
"""Extension class supporting network MTU."""
api_definition = apidef