Merge "Remove deprecated OPENSTACK_QUANTUM_NETWORK"
This commit is contained in:
commit
2e96799ab0
@ -21,7 +21,6 @@ from __future__ import absolute_import
|
||||
|
||||
import collections
|
||||
import logging
|
||||
import warnings
|
||||
|
||||
import netaddr
|
||||
|
||||
@ -1083,14 +1082,7 @@ def is_extension_supported(request, extension_alias):
|
||||
|
||||
|
||||
def is_enabled_by_config(name, default=True):
|
||||
if hasattr(settings, 'OPENSTACK_QUANTUM_NETWORK'):
|
||||
warnings.warn(
|
||||
'OPENSTACK_QUANTUM_NETWORK setting is deprecated and will be '
|
||||
'removed in the near future. '
|
||||
'Please use OPENSTACK_NEUTRON_NETWORK instead.',
|
||||
DeprecationWarning)
|
||||
network_config = (getattr(settings, 'OPENSTACK_NEUTRON_NETWORK', {}) or
|
||||
getattr(settings, 'OPENSTACK_QUANTUM_NETWORK', {}))
|
||||
network_config = getattr(settings, 'OPENSTACK_NEUTRON_NETWORK', {})
|
||||
return network_config.get(name, default)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user