networking_baremetal package¶
Subpackages¶
- networking_baremetal.agent package
- networking_baremetal.drivers package
- networking_baremetal.openconfig package
- networking_baremetal.plugins package
Submodules¶
networking_baremetal.common module¶
- networking_baremetal.common.config_to_xml(config)¶
- networking_baremetal.common.driver_mgr(device_id)¶
- networking_baremetal.common.txt_subelement(parent, tag, text, *args, **kwargs)¶
networking_baremetal.config module¶
- networking_baremetal.config.get_devices()¶
Get enabled network devices from configuration
This is called during driver initialization, during initialization additional driver specific configuration is loaded and the drivers validation method is called.
- networking_baremetal.config.list_common_device_driver_opts()¶
- networking_baremetal.config.list_opts()¶
networking_baremetal.constants module¶
- class networking_baremetal.constants.NetconfEditConfigOperation(value)¶
Bases:
Enum
RFC 6241 - <edit-config> operation attribute
- The “operation” attribute has one of the following values:
- merge: The configuration data identified by the element
containing this attribute is merged with the configuration at the corresponding level in the configuration datastore identified by the <target> parameter. This is the default behavior.
- replace: The configuration data identified by the element
containing this attribute replaces any related configuration in the configuration datastore identified by the <target> parameter. If no such configuration data exists in the configuration datastore, it is created. Unlike a <copy-config> operation, which replaces the entire target configuration, only the configuration actually present in the <config> parameter is affected.
- create: The configuration data identified by the element
containing this attribute is added to the configuration if and only if the configuration data does not already exist in the configuration datastore. If the configuration data exists, an <rpc-error> element is returned with an <error-tag> value of “data-exists”.
- delete: The configuration data identified by the element
containing this attribute is deleted from the configuration if and only if the configuration data currently exists in the configuration datastore. If the configuration data does not exist, an <rpc-error> element is returned with an <error-tag> value of “data-missing”.
- remove: The configuration data identified by the element
containing this attribute is deleted from the configuration if the configuration data currently exists in the configuration datastore. If the configuration data does not exist, the “remove” operation is silently ignored by the server.
- CREATE = 'create'¶
- DELETE = 'delete'¶
- MERGE = 'merge'¶
- REMOVE = 'remove'¶
- REPLACE = 'replace'¶
networking_baremetal.exceptions module¶
- exception networking_baremetal.exceptions.DeviceConnectionError(**kwargs)¶
Bases:
NeutronException
- message = 'Driver failed connecting to device %(device)s: %(err)s'¶
- exception networking_baremetal.exceptions.DriverEntrypointLoadError(**kwargs)¶
Bases:
NeutronException
- message = 'Failed to load entrypoint %(entry_point)s: %(err)s'¶
networking_baremetal.ironic_client module¶
- networking_baremetal.ironic_client.get_client()¶
Get an ironic client connection.
- networking_baremetal.ironic_client.get_session(group)¶
- networking_baremetal.ironic_client.list_opts()¶