Remove local segment-peer-subnet host-route apidef

A version of neutron lib with this api defenition is
now available. Remove the local implementation and use
the one in neutron-lib.

Change-Id: I385eeb81929c6e8a799f9029220ed9f7ab642cad
This commit is contained in:
Harald Jensås 2019-03-18 22:43:27 +01:00
parent ac4e28478a
commit 73d291af70
2 changed files with 2 additions and 34 deletions

View File

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

View File

@ -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