The networking_cisco.tests.unit.ml2.drivers.cisco.nexus.test_cisco_nexus_db Module

class networking_cisco.tests.unit.ml2.drivers.cisco.nexus.test_cisco_nexus_db.CiscoNexusDbTest(*args, **kwds)

Bases: neutron.tests.unit.testlib_api.SqlTestCase

Unit tests for Cisco mechanism driver’s Nexus port binding database.

class NpbObj(port, vlan, vni, switch, instance, channel_group, is_native_vlan)

Bases: tuple

channel_group

Alias for field number 5

instance

Alias for field number 4

is_native_vlan

Alias for field number 6

port

Alias for field number 0

switch

Alias for field number 3

vlan

Alias for field number 1

vni

Alias for field number 2

test_nexusbinding_update(*args, **kwargs)

Tests update of vlan IDs for port bindings.

test_nexusportbinding_add_remove(*args, **kwargs)

Tests add and removal of port bindings from the Nexus database.

test_nexusportbinding_get(*args, **kwargs)

Tests get of specific port bindings from the database.

test_nexusportswitchbinding_get(*args, **kwargs)

Tests get of port bindings based on port and switch.

test_nexusportvlanswitchbinding_get(*args, **kwargs)

Tests get of port bindings based on port, vlan, and switch.

test_nexusvlanbinding_get(*args, **kwargs)

Test get of port bindings based on vlan and switch.

test_nexusvmbinding_get(*args, **kwargs)

Test get of port bindings based on vlan and instance.

class networking_cisco.tests.unit.ml2.drivers.cisco.nexus.test_cisco_nexus_db.TestCiscoNexusVpcAllocDbTest(*args, **kwds)

Bases: neutron.tests.unit.testlib_api.SqlTestCase

Unit tests for Cisco mechanism driver’s Nexus vpc alloc database.

setUp()
test_vpcalloc_init(*args, **kwargs)
test_vpcalloc_min_max(*args, **kwargs)
test_vpcalloc_rollback(*args, **kwargs)
test_vpcalloc_test_alloc_collision(*args, **kwargs)