The networking_cisco.plugins.ml2.drivers.cisco.ucsm.ucsm_network_driver
Module¶
-
class
networking_cisco.plugins.ml2.drivers.cisco.ucsm.ucsm_network_driver.
CiscoUcsmDriver
¶ Bases:
object
UCS Manager Driver Main Class.
-
check_vnic_type_and_vendor_info
(vnic_type, profile)¶ Checks if this vnic_type and vendor device info are supported.
Returns True if: 1. the port vnic_type is direct or macvtap and 2. the vendor_id and product_id of the port is supported by this MD Useful in determining if this MD should bind the current port.
-
create_portprofile
(profile_name, vlan_id, vnic_type, host_id, trunk_vlans)¶ Top level method to create Port Profiles on the UCS Manager.
Calls all the methods responsible for the individual tasks that ultimately result in the creation of the Port Profile on the UCS Manager.
-
delete_all_config_for_vlan
(vlan_id, port_profile, trunk_vlans)¶ Top level method to delete all config for vlan_id.
-
get_ucsm_ip_for_host
(host_id)¶
-
is_vmfex_port
(profile)¶ Checks if the port is a VMFEX port.
Returns True only for port that support VM-FEX. It is important to distinguish between the two since Port Profiles on the UCS Manager are created only for the VM-FEX ports.
-
static
make_vlan_name
(vlan_id)¶
-
ucs_manager_connect
(ucsm_ip)¶ Connects to a UCS Manager.
-
ucs_manager_disconnect
(handle, ucsm_ip)¶ Disconnects from the UCS Manager.
After the disconnect, the handle associated with this connection is no longer valid.
-
ucsm_connect_disconnect
(*args, **kwds)¶
-
update_service_profile_template
(vlan_id, host_id, ucsm_ip)¶
-
update_serviceprofile
(host_id, vlan_id)¶ Top level method to update Service Profiles on UCS Manager.
Calls all the methods responsible for the individual tasks that ultimately result in a vlan_id getting programed on a server’s ethernet ports and the Fabric Interconnect’s network ports.
-
update_vnic_template
(host_id, vlan_id, physnet, vnic_template_path, vnic_template)¶ Updates VNIC Template with the vlan_id.
-