networking_generic_switch.devices.utils.
get_switch_device
(switches, switch_info=None, ngs_mac_address=None)¶Return switch device by specified identifier.
Returns switch device from switches array that matched with any of passed identifiers. ngs_mac_address takes precedence over switch_info, if didn’t match any address based on mac fallback to switch_info.
Parameters: |
|
---|---|
Returns: | switch device matches by specified identifier or None. |
networking_generic_switch.devices.utils.
sanitise_config
(config)¶Return a sanitised configuration of a switch device.
Parameters: | config – a configuration dict to sanitise. |
---|---|
Returns: | a copy of the configuration, with sensitive fields removed. |
networking_generic_switch.devices.
GenericSwitchDevice
(device_cfg)¶Bases: object
add_network
(segmentation_id, network_id)¶del_network
(segmentation_id, network_id)¶delete_port
(port_id, segmentation_id)¶plug_port_to_network
(port_id, segmentation_id)¶networking_generic_switch.devices.
device_manager
(device_cfg)¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.