diff --git a/neutron/extensions/_segments_peer_subnet_host_routes_lib.py b/neutron/extensions/_segments_peer_subnet_host_routes_lib.py deleted file mode 100644 index d0e53bb2ad5..00000000000 --- a/neutron/extensions/_segments_peer_subnet_host_routes_lib.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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. - -""" -TODO(hjensas): This module should be deleted once neutron-lib containing -Change-Id: Ibd1b565a04a6d979b6e56ca5469af644894d6b4c is released. -""" - -from neutron_lib.api.definitions import segment - - -ALIAS = 'segments-peer-subnet-host-routes' -IS_SHIM_EXTENSION = True -IS_STANDARD_ATTR_EXTENSION = False -NAME = 'Segments peer-subnet host routes' -DESCRIPTION = 'Add host routes to subnets on a routed network (segments)' -UPDATED_TIMESTAMP = '2018-06-12T10:00:00-00:00' -RESOURCE_ATTRIBUTE_MAP = {} -SUB_RESOURCE_ATTRIBUTE_MAP = {} -ACTION_MAP = {} -REQUIRED_EXTENSIONS = [segment.ALIAS] -OPTIONAL_EXTENSIONS = [] -ACTION_STATUS = {} diff --git a/neutron/extensions/segments_peer_subnet_host_routes.py b/neutron/extensions/segments_peer_subnet_host_routes.py index 32855e79628..61d81be9d71 100644 --- a/neutron/extensions/segments_peer_subnet_host_routes.py +++ b/neutron/extensions/segments_peer_subnet_host_routes.py @@ -10,9 +10,9 @@ # License for the specific language governing permissions and limitations # under the License. -from neutron.extensions import _segments_peer_subnet_host_routes_lib as apidef +from neutron_lib.api.definitions import segments_peer_subnet_host_routes from neutron_lib.api import extensions class Segments_peer_subnet_host_routes(extensions.APIExtensionDescriptor): - api_definition = apidef + api_definition = segments_peer_subnet_host_routes