This Page

The quantum.plugins.cisco.tests.unit.v2.nexus.fake_nexus_driver Module

class quantum.plugins.cisco.tests.unit.v2.nexus.fake_nexus_driver.CiscoNEXUSFakeDriver

Nexus Driver Fake Class

add_vlan_int(vlan_id, nexus_host, nexus_user, nexus_password, nexus_ports, nexus_ssh_port, vlan_ids=None)

Adds a vlan from interfaces on the Nexus switch given the VLAN ID

build_vlans_cmd()

Builds a string with all the VLANs on the same Switch

create_vlan(vlan_name, vlan_id, nexus_host, nexus_user, nexus_password, nexus_ports, nexus_ssh_port, vlan_ids)

Creates a VLAN and Enable on trunk mode an interface on Nexus Switch given the VLAN ID and Name and Interface Number

create_xml_snippet(cutomized_config)

Creates the Proper XML structure for the Nexus Switch Configuration

delete_vlan(vlan_id, nexus_host, nexus_user, nexus_password, nexus_ports, nexus_ssh_port)

Delete a VLAN and Disables trunk mode an interface on Nexus Switch given the VLAN ID and Interface Number

disable_switch_port(mgr, interface)

Disables trunk mode an interface on Nexus Switch

disable_vlan(mgr, vlanid)

Delete a VLAN on Nexus Switch given the VLAN ID

disable_vlan_on_trunk_int(mgr, interface, vlanid)

Enables trunk mode vlan access an interface on Nexus Switch given VLANID

enable_port_trunk(mgr, interface)

Enables trunk mode an interface on Nexus Switch

enable_vlan(mgr, vlanid, vlanname)

Creates a VLAN on Nexus Switch given the VLAN ID and Name

enable_vlan_on_trunk_int(mgr, interface, vlanid)

Enables trunk mode vlan access an interface on Nexus Switch given VLANID

nxos_connect(nexus_host, nexus_ssh_port, nexus_user, nexus_password)

Makes the fake connection to the Nexus Switch

remove_vlan_int(vlan_id, nexus_host, nexus_user, nexus_password, nexus_ports, nexus_ssh_port)

Removes a vlan from interfaces on the Nexus switch given the VLAN ID