The networking_cisco.plugins.ml2.drivers.cisco.nexus.mech_cisco_nexus Module

ML2 Mechanism Driver for Cisco Nexus platforms.

class networking_cisco.plugins.ml2.drivers.cisco.nexus.mech_cisco_nexus.CiscoNexusCfgMonitor(driver, mdriver)

Bases: object

Replay config on communication failure between OpenStack to Nexus.

check_connections()

Check connection between OpenStack to Nexus device.

replay_config(switch_ip)

Sends pending config data in OpenStack to Nexus.

class networking_cisco.plugins.ml2.drivers.cisco.nexus.mech_cisco_nexus.CiscoNexusMechanismDriver

Bases: neutron_lib.plugins.ml2.api.MechanismDriver

Cisco Nexus ML2 Mechanism Driver.

bind_port(context)
configure_next_batch_of_vlans(switch_ip)

Get next batch of vlans and send them to Nexus.

configure_switch_entries(switch_ip, port_bindings)

Create a nexus switch entry in Nexus.

The port_bindings is sorted by vlan_id, vni, port_id. When there is a change in vlan_id or vni, then vlan data is configured in Nexus device. Otherwise we check if there is a change in port_id where we configure the port with vlan trunk config.

Called during switch replay event.

create_network_precommit(context)
create_port_postcommit(*args, **kwargs)

Create port non-database commit event.

delete_network_postcommit(context)
delete_port_postcommit(*args, **kwargs)

Delete port non-database commit event.

delete_port_precommit(*args, **kwargs)

Delete port pre-database commit event.

get_all_switch_ips()

Using reserved switch binding get all switch ips.

get_nve_loopback(switch_ip)
get_switch_ip_and_active_state(switch_ip)
get_switch_ips()
get_switch_nexus_type(switch_ip)
get_switch_replay_failure(fail_key, switch_ip)
incr_switch_replay_failure(fail_key, switch_ip)
initialize()
is_replay_enabled()
is_switch_active(switch_ip)
register_switch_as_inactive(switch_ip, func_name)
reset_switch_replay_failure(fail_key, switch_ip)
set_switch_ip_and_active_state(switch_ip, state)
set_switch_nexus_type(switch_ip, type)
update_port_postcommit(*args, **kwargs)

Update port non-database commit event.

update_port_precommit(*args, **kwargs)

Update port pre-database transaction commit event.