Merge "Allow network driver selection override"
This commit is contained in:
commit
71e46da53d
@ -201,7 +201,11 @@ networking_opts = [
|
|||||||
|
|
||||||
cfg.StrOpt('network_config_file', default='netconfig.yaml',
|
cfg.StrOpt('network_config_file', default='netconfig.yaml',
|
||||||
help='If provided networking configuration will be taken '
|
help='If provided networking configuration will be taken '
|
||||||
'from this file')
|
'from this file'),
|
||||||
|
|
||||||
|
cfg.StrOpt('driver', default=None, choices=['neutron', 'nova'],
|
||||||
|
help='Network driver to use. Options are neutron or nova.'
|
||||||
|
'If not provided, the driver will be detected.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
stats_opts = [
|
stats_opts = [
|
||||||
|
@ -264,6 +264,11 @@ class EnvironmentServices(object):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_network_driver(context):
|
def get_network_driver(context):
|
||||||
|
driver = CONF.networking.driver
|
||||||
|
if driver:
|
||||||
|
LOG.debug("Will use {} as a network driver".format(driver))
|
||||||
|
return driver
|
||||||
|
|
||||||
session = auth_utils.get_token_client_session(
|
session = auth_utils.get_token_client_session(
|
||||||
context.auth_token, context.tenant)
|
context.auth_token, context.tenant)
|
||||||
try:
|
try:
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Configuration option added to explicitly select a
|
||||||
|
networking driver rather than auto-detect.
|
Loading…
Reference in New Issue
Block a user