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

class networking_cisco.plugins.ml2.drivers.cisco.ucsm.ucsm_db.UcsmDbModel

Bases: object

add_port_profile(profile_name, vlan_id, device_id)

Adds a port profile and its vlan_id to the table.

add_port_profile_to_delete_table(profile_name, device_id)

Adds a port profile to the delete table.

add_service_profile_template(vlan_id, sp_template, ucsm_ip)

Adds an entry for a vlan_id on a SP template to the table.

add_vnic_template(vlan_id, ucsm_ip, vnic_template, physnet)

Adds an entry for a vlan_id on a SP template to the table.

delete_sp_template_for_vlan(vlan_id)

Deletes SP Template for a vlan_id if it exists.

delete_vlan_entry(vlan_id)

Deletes entry for a vlan_id if it exists.

delete_vnic_template_for_vlan(vlan_id)

Deletes VNIC Template for a vlan_id and physnet if it exists.

get_all_port_profiles_to_delete()
get_port_profile_for_vlan(vlan_id, device_id)

Returns Vlan id associated with the port profile.

get_sp_template_vlan_entry(vlan_id, sp_template, ucsm_ip)
get_vnic_template_vlan_entry(vlan_id, vnic_template, ucsm_ip, physnet)
has_port_profile_to_delete(profile_name, device_id)

Returns True if port profile delete table containes PP.

is_port_profile_created(vlan_id, device_id)

Indicates if port profile has been created on UCS Manager.

remove_port_profile_to_delete(profile_name, device_id)

Removes port profile to be deleted from table.

set_port_profile_created(vlan_id, profile_name, device_id)

Sets created_on_ucs flag to True.

set_sp_template_updated(vlan_id, sp_template, device_id)

Sets update_on_ucs flag to True.

set_vnic_template_updated(vlan_id, ucsm_ip, vnic_template, physnet)

Sets update_on_ucs flag to True for a Vnic Template entry.