Merge "Add block name to switch config options for MLX plug-ins."
This commit is contained in:
commit
dfcfbff4db
|
@ -3,7 +3,7 @@
|
|||
# Example:
|
||||
# switch_names = mlx
|
||||
|
||||
# [EXAMPLE_SWITCH]
|
||||
[L3_BROCADE_MLX_EXAMPLE]
|
||||
# address = The IP address of the MLX switch
|
||||
# username = The SSH username to use to connect to device
|
||||
# password = The SSH password to use to connect to device
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Example:
|
||||
# switch_names = icx-1, icx-2
|
||||
|
||||
# [switch-name-1]
|
||||
[ML2_BROCADE_MLX_EXAMPLE]
|
||||
# address = The address of the host to SSH to
|
||||
# username = The username to use to connect to device
|
||||
# password = The password to use to connect to device
|
||||
|
|
|
@ -41,10 +41,10 @@ ML2_BROCADE = [cfg.StrOpt('address', default='',
|
|||
help=('OS type of the device.')),
|
||||
]
|
||||
cfg.CONF.register_opts(SWITCHES, 'ml2_brocade_fi_ni')
|
||||
cfg.CONF.register_opts(ML2_BROCADE, 'ML2_BROCADE_MLX_EXAMPLE')
|
||||
|
||||
|
||||
class BrocadeFiNiMechanism(mechanism_brocade_fi_ni.BrocadeFiNiMechanism):
|
||||
|
||||
def __init__(self):
|
||||
self._switch_names = cfg.CONF.ml2_brocade_fi_ni.switch_names
|
||||
switches = [x.strip() for x in self._switch_names.split(',')]
|
||||
|
|
|
@ -39,6 +39,7 @@ L3_BROCADE = [cfg.StrOpt('address', default='',
|
|||
'configured on the switch')),
|
||||
]
|
||||
cfg.CONF.register_opts(SWITCHES, 'l3_brocade_mlx')
|
||||
cfg.CONF.register_opts(L3_BROCADE, 'L3_BROCADE_MLX_EXAMPLE')
|
||||
|
||||
|
||||
class BrocadeRouterPlugin(plugin.BrocadeRouterPlugin):
|
||||
|
|
Loading…
Reference in New Issue