use is_extension_supported from neutron-lib
The is_extension_supported now lives in neutron-lib. This patch switches use of it over to neutron-lib rather than using neutron in prep for Iccb72e00f85043b3dff0299df7eb1279655e313e Change-Id: I64f5a889577ba2e7ef1de0bb958454ad31895680
This commit is contained in:
parent
c2b3074edb
commit
c74f775f7a
|
@ -21,6 +21,7 @@ from oslo_log import log
|
|||
from neutron_lib.api.definitions import availability_zone as az_def
|
||||
from neutron_lib.api.definitions import portbindings
|
||||
from neutron_lib.api.definitions import provider_net
|
||||
from neutron_lib.api import extensions
|
||||
from neutron_lib.api import validators
|
||||
import neutron_lib.constants as q_constants
|
||||
import neutron_lib.exceptions as q_exceptions
|
||||
|
@ -28,7 +29,6 @@ from neutron_lib.plugins import directory
|
|||
from neutron_lib.utils import runtime
|
||||
import neutronclient.client as neutronclient
|
||||
|
||||
from neutron.common import utils
|
||||
import neutron.extensions.securitygroup as ext_sg
|
||||
from neutron.plugins.ml2 import plugin
|
||||
|
||||
|
@ -622,7 +622,7 @@ class TricirclePlugin(plugin.Ml2Plugin):
|
|||
:param port_body: port update body
|
||||
:return: None
|
||||
"""
|
||||
if not utils.is_extension_supported(self.core_plugin, 'agent'):
|
||||
if not extensions.is_extension_supported(self.core_plugin, 'agent'):
|
||||
return
|
||||
profile_dict = port_body.get(portbindings.PROFILE, {})
|
||||
if not validators.is_attr_set(profile_dict):
|
||||
|
@ -657,7 +657,7 @@ class TricirclePlugin(plugin.Ml2Plugin):
|
|||
:param profile_dict: binding profile dict in the port update body
|
||||
:return: None
|
||||
"""
|
||||
if not utils.is_extension_supported(self.core_plugin, 'agent'):
|
||||
if not extensions.is_extension_supported(self.core_plugin, 'agent'):
|
||||
return
|
||||
if cfg.CONF.client.cross_pod_vxlan_mode == t_constants.NM_NOOP:
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue