networking_baremetal.drivers package¶
Submodules¶
networking_baremetal.drivers.base module¶
-
class
networking_baremetal.drivers.base.
BaseDeviceClient
(device)¶ Bases:
object
-
edit_config
(config)¶ Edit configuration on the device
- Parameters
config – The configuration to apply to the device
-
get
(**kwargs)¶ Get current configuration/state from device
-
get_client_args
()¶ Get client connection arguments from configuration
-
-
class
networking_baremetal.drivers.base.
BaseDeviceDriver
(device)¶ Bases:
object
-
SUPPORTED_BOND_MODES
= {}¶
-
create_network
(context)¶ Create network on device
- Parameters
context – NetworkContext instance describing the new network.
-
create_port
(context, segment, links)¶ Create/Configure port on device
- Parameters
context – PortContext instance describing the new state of the port, as well as the original state prior to the update_port call.
segment – segment dictionary describing segment to bind
links – Local link information filtered for the device.
-
delete_network
(context)¶ Delete network on device
- Parameters
context – NetworkContext instance describing the new network.
-
delete_port
(context, links, current=True)¶ Delete/Un-configure port on device
- Parameters
context – PortContext instance describing the new state of the port, as well as the original state prior to the update_port call.
links – Local link information filtered for the device.
current – Boolean, when true use context.current, when false use context.original
-
load_config
()¶ Register driver specific configuration
All drivers should register driver specific options in the device specific config group. This method will be called during mechanism driver initialization.
-
update_network
(context)¶ Update network on device
- Parameters
context – NetworkContext instance describing the new network.
-
update_port
(context, links)¶ Update port on device
- Parameters
context – PortContext instance describing the new state of the port, as well as the original state prior to the update_port call.
links – Local link information filtered for the device.
-
validate
()¶ Driver validation
This method will be called during mechanism driver initialization. Raising any exception other than DriverValidationError will cause service initialization failure.
- Raises
DriverValidationError – On validation failure.
-