The networking_cisco.tests.unit.saf.agent.vdp.test_ovs_vdp Module

class networking_cisco.tests.unit.saf.agent.vdp.test_ovs_vdp.OvsVdpTest(*args, **kwds)

Bases: neutron.tests.base.BaseTestCase

A test suite to exercise the OvsVdp Class.

setUp()

Setup routine

test_flow_check_handler_both_flows_missing(*args, **kwargs)

Testing the flow check handler for both bridges.

Flow is missing for both bridges.

test_flow_check_handler_ext_flows_missing(*args, **kwargs)

Testing the flow check handler for external bridge.

Flow is missing for external bridge.

test_flow_check_handler_integ_flows_missing(*args, **kwargs)

Testing the flow check handler for integ bridge.

Flow is missing for integration bridge.

test_flow_check_handler_no_flows_missing(*args, **kwargs)

Testing the flow check handler for both bridges.

No flows are missing in both the bridges.

test_populate_cache(*args, **kwargs)

Test the populate cache function.

test_process_init(*args, **kwargs)

Wrapper for the init routine test

test_setup_lldpad_ports(*args, **kwargs)

Test for setup lldpad ports.

test_vdp_port_event(*args, **kwargs)

Routine the calls the other new port and existing port test routines

test_vdp_port_event_down(*args, **kwargs)

Routine the calls the port down test

test_vdp_port_event_down_mismatched_vlans(*args, **kwargs)

Test the case for a vnic port down for a network with mismatch vlan.

This is to test the case when there are more than one vNic for a network with mismatched VLAN’s. Stale Flows should be removed and new flows should be added.

test_vdp_port_event_down_no_valid_vlan(*args, **kwargs)

Test the case for a vnic port down for a network with no valid vlan.

This is to test the case when there are more than one vNic for a
network with no valid VLAN. Flows should be removed.
test_vdp_port_event_down_valid_vlan(*args, **kwargs)

Test the case for a vnic port down for a network.

This is to test the case when there are more than one vNic for a network with a valid VLAN. Flows should not be removed.

test_vdp_vlan_change_multiple_vnics_norem(*args, **kwargs)

Testing the VDP VLAN change for multiple vnic’s.

This is for the case when there are multiple vNics for the same network and for one vNic a VDP VLAN of 0, is returned. So flow should not be deleted.

test_vdp_vlan_change_rem(*args, **kwargs)

Testing the VDP VLAN change for a remove flow case.

test_vdp_vlan_change_rem_add(*args, **kwargs)

Testing the VDP VLAN change for a remove/add flow case.