The networking_cisco.plugins.ml2.drivers.cisco.ucsm.mech_cisco_ucsm Module

class networking_cisco.plugins.ml2.drivers.cisco.ucsm.mech_cisco_ucsm.CiscoUcsmMechanismDriver

Bases: neutron_lib.plugins.ml2.api.MechanismDriver

ML2 Mechanism Driver for Cisco UCS Manager.

bind_port(context)

Binds port to current network segment.

Binds port only if the vnic_type is direct or macvtap and the port is from a supported vendor. While binding port set it in ACTIVE state and provide the Port Profile or Vlan Id as part vif_details.

static check_segment(segment)
delete_network_postcommit(context)

Delete all configuration added to UCS Manager for the vlan_id.

delete_network_precommit(context)

Delete entry corresponding to Network’s VLAN in the DB.

initialize()
static make_profile_name(vlan_id)
update_port_postcommit(context)

Creates a port profile on UCS Manager.

Creates a Port Profile for this VLAN if it does not already exist.

update_port_precommit(context)

Adds port profile and vlan information to the DB.

Assign a port profile to this port. To do that: 1. Get the vlan_id associated with the bound segment 2. Check if a port profile already exists for this vlan_id 3. If yes, associate that port profile with this port. 4. If no, create a new port profile with this vlan_id and associate with this port