Skip to content

Commit

Permalink
Fix ml2_hpe section not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen B. Ma committed Jun 9, 2017
1 parent cb92088 commit aa87d33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 8 additions & 0 deletions baremetal_network_provisioning/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@

LOG = log.getLogger(__name__)

driver_opts = [
cfg.StrOpt('provisioning_driver',
default='baremetal_network_provisioning.drivers'
'.snmp_provisioning_driver.SNMPProvisioningDriver',
help=_("Driver to provision networks on the switches in"
"the cloud fabric")),
]
cfg.CONF.register_opts(driver_opts, "ml2_hpe")

class ProvisioningManager(stevedore.named.NamedExtensionManager):
"""Manage provisioning drivers for BNP."""
Expand Down
9 changes: 1 addition & 8 deletions baremetal_network_provisioning/ml2/mechanism_hpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,7 @@


LOG = logging.getLogger(__name__)
driver_opts = [
cfg.StrOpt('provisioning_driver',
default='baremetal_network_provisioning.drivers'
'.snmp_provisioning_driver.SNMPProvisioningDriver',
help=_("Driver to provision networks on the switches in"
"the cloud fabric")),
]
cfg.CONF.register_opts(driver_opts, "ml2_hpe")

param_opts = [
cfg.IntOpt('snmp_retries',
default=5,
Expand Down

0 comments on commit aa87d33

Please sign in to comment.