Remove left over code for availability_zone_filter
The extension in neutron-lib was released in 1.17.0 so it is time to use the extension from neutron-lib. Change-Id: Ia414c4c6870897ac6f3dfdc8e33c355eba7f34ff Related-Bug: #1733362
This commit is contained in:
parent
44888cff74
commit
e009ba0f62
@ -20,6 +20,7 @@ from eventlet import greenthread
|
||||
from neutron_lib.agent import constants as agent_consts
|
||||
from neutron_lib.api import converters
|
||||
from neutron_lib.api.definitions import agent as agent_apidef
|
||||
from neutron_lib.api.definitions import availability_zone_filter as azfil_ext
|
||||
from neutron_lib.api import extensions
|
||||
from neutron_lib.callbacks import events
|
||||
from neutron_lib.callbacks import registry
|
||||
@ -43,7 +44,6 @@ from neutron.agent.common import utils
|
||||
from neutron.api.rpc.callbacks import version_manager
|
||||
from neutron.conf.agent.database import agents_db
|
||||
from neutron.db.models import agent as agent_model
|
||||
from neutron.extensions import _availability_zone_filter_lib as azfil_ext
|
||||
from neutron.extensions import agent as ext_agent
|
||||
from neutron.extensions import availability_zone as az_ext
|
||||
from neutron.objects import agent as agent_obj
|
||||
|
@ -1,34 +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(hongbin): This module should be deleted once neutron-lib containing
|
||||
https://review.opendev.org/#/c/577545/ change is released.
|
||||
"""
|
||||
|
||||
from neutron_lib.api.definitions import availability_zone as az
|
||||
|
||||
|
||||
ALIAS = 'availability_zone_filter'
|
||||
IS_SHIM_EXTENSION = True
|
||||
IS_STANDARD_ATTR_EXTENSION = False
|
||||
NAME = 'Availability Zone Filter Extension'
|
||||
DESCRIPTION = 'Add filter parameters to AvailabilityZone resource'
|
||||
UPDATED_TIMESTAMP = '2018-06-22T10:00:00-00:00'
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {}
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = [
|
||||
az.ALIAS
|
||||
]
|
||||
OPTIONAL_EXTENSIONS = []
|
||||
ACTION_STATUS = {}
|
@ -10,7 +10,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from neutron.extensions import _availability_zone_filter_lib as apidef
|
||||
from neutron_lib.api.definitions import availability_zone_filter as apidef
|
||||
from neutron_lib.api import extensions
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user