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

class networking_cisco.tests.unit.saf.agent.vdp.test_lldpad.LldpadDriverTest(*args, **kwds)

Bases: neutron.tests.base.BaseTestCase

A test suite to exercise the Lldpad Driver.

fill_default_vsi_params()

Mock VSI Params

setUp()

Setup for the test scripts

test_crosscheck_query_mismatch_mac(*args, **kwargs)

Test MAC mismatch in query.

test_crosscheck_query_mismatch_vsiid(*args, **kwargs)

Test VSI ID mismatch in reply.

test_crosscheck_reply_mismatch_mac(*args, **kwargs)

Test MAC mismatch in reply.

test_crosscheck_reply_mismatch_vsiid(*args, **kwargs)

Test VSI ID mismatch in reply.

test_enable_evb(*args, **kwargs)

Top level routine for EVB cfg test

test_enable_lldp(*args, **kwargs)

Tests the routine the enables LLDP cfg

test_filter_query_validity(*args, **kwargs)

Test for filter query validity. Positive case.

test_filter_query_validity_incorrect_filter(*args, **kwargs)

Test for filter query, when there’s no filter.

test_filter_query_validity_multiple_filter(*args, **kwargs)

Test for filter query, when there are multiple filters.

test_filter_reply_validity(*args, **kwargs)

Test for filter reply validity. Positive case.

test_filter_reply_validity_incorrect_filter(*args, **kwargs)

Test for filter reply, when there’s no filter.

test_filter_reply_validity_multiple_filter(*args, **kwargs)

Test for filter reply, when there are multiple filters.

test_hints_exception(*args, **kwargs)

Test for incorrectly formatted hints.

test_incorrect_hints(*args, **kwargs)

Test for case when there’s no hints in reply.

test_init(*args, **kwargs)

Place hlder for init

test_mode_reply_deassoc(*args, **kwargs)

Test for mode reply when deassoc is sent.

test_mode_reply_invalid(*args, **kwargs)

Test for mode reply validity. Invalid case.

test_multiple_hints(*args, **kwargs)

Test for case, when there are multiple hints in query response.

test_nonzero_hints(*args, **kwargs)

Test for non-zero hints.

test_valid_hints(*args, **kwargs)

Test for valid hints case.

test_vdp_failure_reason_invalid(*args, **kwargs)

Test for case that parses the failure reason for invalid case.

test_vdp_failure_reason_invalid_null(*args, **kwargs)

Test for case that parses the failure reason for null case.

test_vdp_failure_reason_valid(*args, **kwargs)

Test for case that parses the failure reason for valid case.

test_vdp_port_down(*args, **kwargs)

Tests the case when a VM goes down

test_vdp_port_up_new_nwk(*args, **kwargs)

Tests the case when a VM comes for a new network

test_vdp_port_up_new_nwk_after_restart(*args, **kwargs)

Tests the case when a VM comes for a new network after restart

test_vdp_port_up_new_nwk_invalid_vlan(*args, **kwargs)

Tests the case when an invalid VLAN is rteturned for a VM that comes up for a new network

test_vdp_port_up_old_nwk(*args, **kwargs)

Tests the case when a VM comes for an existing network

test_vdp_refresh_handler(*args, **kwargs)

Test for VDP refresh handler, with one VDI.

test_vdp_refresh_handler_cb_thresh_exceed(*args, **kwargs)

Test for refresh handler, when callback threshold has exceeded.

test_vdp_refresh_handler_modf_reason(*args, **kwargs)

Test for VDP refresh handler, when fail reason is changed.

test_vdp_refresh_handler_modf_vlan(*args, **kwargs)

Test for VDP refresh handler, when VLAN from VDP is changed.

test_vlan_query_exception(*args, **kwargs)

Test for incorrectly formatted reply in vlan query function.

test_vlan_query_incorrect_filter(*args, **kwargs)

Test for incorrect filter in vlan query function.

test_vlan_query_vsiid_fail(*args, **kwargs)

Test for incorrect vsiid in vlan query function.

test_vlan_reply_invalid(*args, **kwargs)

Test for invalid vlan reply.