Use extension 'empty-string-filtering' from neutron-lib

NeutronLibImpact
Related-Bug: #1749304

Change-Id: Ifb3fc88451c5c348e348b631b37d20e65b7ff486
This commit is contained in:
Hongbin Lu 2018-07-05 19:43:12 +00:00
parent f88cb5276d
commit f502bbc2ac
2 changed files with 1 additions and 32 deletions

View File

@ -1,30 +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.openstack.org/#/c/565342/ change is released.
"""
ALIAS = 'empty-string-filtering'
IS_SHIM_EXTENSION = True
IS_STANDARD_ATTR_EXTENSION = False
NAME = 'Empty String Filtering Extension'
DESCRIPTION = 'Allow filtering by attributes with empty string value'
UPDATED_TIMESTAMP = '2018-04-09T10:00:00-00:00'
RESOURCE_ATTRIBUTE_MAP = {}
SUB_RESOURCE_ATTRIBUTE_MAP = {}
ACTION_MAP = {}
REQUIRED_EXTENSIONS = []
OPTIONAL_EXTENSIONS = []
ACTION_STATUS = {}

View File

@ -10,10 +10,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from neutron_lib.api.definitions import empty_string_filtering as apidef
from neutron_lib.api import extensions
from neutron.extensions import _empty_string_filtering_lib as apidef
class Empty_string_filtering(extensions.APIExtensionDescriptor):
api_definition = apidef