Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Import alias Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str AttributeLoad NameLoad attr Str Str Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str AttributeLoad NameLoad attr Str Str Str Str Str keyword AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str AttributeLoad NameLoad attr Str Str Str Str Str Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num body Expr Str If NameLoad body If CompareEq NameLoad Num body Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str AttributeLoad NameLoad attr Str Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str AttributeLoad NameLoad attr Str Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Str Str NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str orelse Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str AttributeLoad NameLoad attr Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Str Str NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Str Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str AttributeLoad NameLoad attr Str Str Str NameLoad Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Str Str NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A collections N/A mock neutron.tests base networking_cisco.apps.saf.agent.vdp lldpad networking_cisco.apps.saf.agent.vdp lldpad_constants vdp_con networking_cisco.apps.saf.common dfa_sys_lib utils N/A N/A N/A OrderedDict N/A collections OrderedDict N/A N/A N/A AttributeError N/A N/A ordereddict N/A OrderedDict N/A ordereddict OrderedDict LldpadDriverTest N/A N/A base BaseTestCase N/A N/A A test suite to exercise the Lldpad Driver.   setUp N/A N/A self N/A N/A N/A Setup for the test scripts  N/A N/A N/A N/A super LldpadDriverTest self setUp N/A N/A self root_helper sudo N/A N/A self port_name loc_veth N/A N/A self uplink eth2 N/A N/A self port_str loc_veth_eth2 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object utils execute spec N/A utils execute start N/A N/A N/A self fill_default_vsi_params N/A N/A N/A self _test_lldp_init N/A _test_lldp_init N/A N/A self N/A N/A N/A Tests the initialization  N/A N/A N/A mock patch networking_cisco.apps.saf.common.utils.PeriodicTask period_fn N/A N/A period_obj N/A period_fn return_value N/A parent N/A N/A mock MagicMock N/A N/A N/A parent attach_mock N/A period_obj run run N/A N/A self lldpad N/A N/A lldpad LldpadDriver N/A self port_str N/A self uplink N/A self root_helper N/A expected_calls N/A N/A N/A N/A mock call run N/A N/A N/A parent assert_has_calls expected_calls N/A test_init N/A N/A self N/A N/A N/A Place hlder for init  N/A N/A _test_enable_lldp N/A N/A self is_ncb N/A True N/A N/A Tests the routine the enables EVB cfg  N/A N/A N/A N/A self lldpad enable_lldp N/A N/A is_ncb True N/A N/A N/A N/A N/A self execute assert_called_with N/A lldptool -L -i N/A self port_str -g ncb adminStatus=rxtx root_helper N/A self root_helper N/A test_enable_lldp N/A N/A self N/A N/A N/A Tests the routine the enables LLDP cfg  N/A N/A N/A self _test_enable_lldp is_ncb True N/A test_enable_evb N/A N/A self N/A N/A N/A Top level routine for EVB cfg test  N/A parent N/A N/A mock MagicMock N/A N/A N/A parent attach_mock N/A self execute execute N/A N/A N/A N/A self lldpad enable_evb N/A expected_calls N/A N/A N/A N/A mock call execute N/A lldptool -T -i N/A self port_str -g ncb -V evb enableTx=yes root_helper N/A self root_helper N/A N/A N/A mock call execute N/A lldptool -T -i N/A self port_str -g ncb -V evb -c evbgpid=yes root_helper N/A self root_helper N/A N/A N/A parent assert_has_calls expected_calls N/A fill_default_vsi_params N/A N/A self N/A N/A N/A Mock VSI Params  N/A N/A self uuid 00000000-1111-2222-3333-444455556666 N/A N/A self vsiid N/A self uuid N/A N/A self mgrid 0 N/A N/A self typeid 0 N/A N/A self typeidver 0 N/A N/A self gid 20000 N/A N/A self mac 00:11:22:33:44:55 N/A N/A self vlan 0 N/A N/A self mgrid_str mgrid2=0 N/A N/A self typeid_str typeid=0 N/A N/A self typeidver_str typeidver=0 N/A N/A self vsiid_str uuid=00000000-1111-2222-3333-444455556666 N/A N/A self filter_str filter=0-00:11:22:33:44:55-20000 N/A N/A self mode_str mode=assoc N/A _test_vnic_assert N/A N/A self test_vlan vlan_ret filter_str new_nwk parent is_rest N/A 0 N/A N/A assert tests called by other test functions  N/A new_nwk N/A N/A N/A is_rest 1 N/A N/A expected_calls N/A N/A N/A N/A mock call execute N/A vdptool -t -i N/A self port_str -R -V assoc -c N/A self mode_str -c N/A self mgrid_str -c N/A self typeid_str -c N/A self typeidver_str -c N/A self vsiid_str root_helper N/A self root_helper N/A N/A expected_calls N/A N/A N/A N/A mock call execute N/A vdptool -T -i N/A self port_str -W -V assoc -c N/A self mode_str -c N/A self mgrid_str -c N/A self typeid_str -c N/A self typeidver_str -c N/A self vsiid_str -c hints=none -c filter_str root_helper N/A self root_helper N/A N/A N/A self assertEqual vlan_ret test_vlan N/A N/A N/A self assertEqual test_vlan N/A N/A N/A N/A N/A self lldpad vdp_vif_map N/A N/A self uuid get vdp_vlan N/A N/A expected_calls N/A N/A N/A N/A mock call execute N/A vdptool -T -i N/A self port_str -V assoc -c N/A self mode_str -c N/A self mgrid_str -c N/A self typeid_str -c N/A self typeidver_str -c N/A self vsiid_str -c hints=none -c filter_str root_helper N/A self root_helper N/A N/A N/A parent assert_has_calls expected_calls N/A N/A N/A self assertEqual N/A self mgrid N/A N/A N/A N/A N/A self lldpad vdp_vif_map N/A N/A self uuid get mgrid N/A N/A N/A self assertEqual N/A self typeid N/A N/A N/A N/A N/A self lldpad vdp_vif_map N/A N/A self uuid get typeid N/A N/A N/A self assertEqual N/A self typeidver N/A N/A N/A N/A N/A self lldpad vdp_vif_map N/A N/A self uuid get typeid_ver N/A N/A N/A self assertEqual N/A self vsiid N/A N/A N/A N/A N/A self lldpad vdp_vif_map N/A N/A self uuid get vsiid N/A N/A N/A self assertEqual N/A vdp_con VDP_FILTER_GIDMACVID N/A N/A N/A N/A N/A self lldpad vdp_vif_map N/A N/A self uuid get filter_frmt N/A N/A N/A self assertEqual N/A self gid N/A N/A N/A N/A N/A self lldpad vdp_vif_map N/A N/A self uuid get gid N/A N/A N/A self assertEqual N/A self mac N/A N/A N/A N/A N/A self lldpad vdp_vif_map N/A N/A self uuid get mac N/A test_vdp_port_up_new_nwk N/A N/A self N/A N/A N/A Tests the case when a VM comes for a new network  N/A expected_vlan 3003 N/A parent N/A N/A mock MagicMock N/A N/A N/A parent attach_mock N/A self execute execute N/A N/A N/A self execute return_value Response from VDP
	mode = assoc
	mgrid2 = 0
	typeid = 0
	typeidver = 0
	uuid = 00000000-1111-2222-3333-444455556666
	filter = 3003-00:12:22:33:44:55-0
 N/A N/A N/A self lldpad send_vdp_query_msg N/A N/A mock Mock N/A vlan_ret N/A N/A N/A self lldpad send_vdp_vnic_up port_uuid N/A self uuid vsiid N/A self vsiid mgrid N/A self mgrid typeid N/A self typeid typeid_ver N/A self typeidver gid N/A self gid mac N/A self mac new_network True N/A N/A N/A self _test_vnic_assert expected_vlan vlan_ret N/A self filter_str True parent N/A test_vdp_port_up_new_nwk_after_restart N/A N/A self N/A N/A N/A Tests the case when a VM comes for a new network after restart  N/A expected_vlan 3003 N/A parent N/A N/A mock MagicMock N/A N/A N/A parent attach_mock N/A self execute execute N/A N/A N/A self execute return_value M000080c4C3010000001509LLDPLeth5020000000304mode0005assoc06mgrid20001006typeid0001009typeidver0001004uuid002400000000-1111-2222-3333-444455556666
R00C3010000001509LLDPLeth500000003010504mode0005assoc06mgrid20001006typeid0001009typeidver0001004uuid00000000-1111-2222-3333-44445555666605hints0001006filter001c3003-00:12:22:33:44:55-2000003oui006105cisco07vm_name000bFW_SRVC_RTR07vm_uuid002467f338a6-0925-42aa-b2df-e8114e9fd0da09ipv4_addr00020l
 N/A vlan_ret N/A N/A N/A self lldpad send_vdp_vnic_up port_uuid N/A self uuid vsiid N/A self vsiid mgrid N/A self mgrid typeid N/A self typeid typeid_ver N/A self typeidver gid N/A self gid mac N/A self mac new_network True N/A N/A N/A self _test_vnic_assert expected_vlan vlan_ret N/A self filter_str True parent is_rest 1 N/A test_vdp_port_up_new_nwk_invalid_vlan N/A N/A self N/A N/A N/A 
        Tests the case when an invalid VLAN is rteturned for a VM that comes
        up for a new network
         N/A expected_vlan -1 N/A parent N/A N/A mock MagicMock N/A N/A N/A parent attach_mock N/A self execute execute N/A N/A N/A self execute return_value 
Return from vsievt -11 N/A vlan_ret N/A N/A N/A self lldpad send_vdp_vnic_up port_uuid N/A self uuid vsiid N/A self vsiid mgrid N/A self mgrid typeid N/A self typeid typeid_ver N/A self typeidver gid N/A self gid mac N/A self mac new_network True N/A N/A N/A self _test_vnic_assert expected_vlan vlan_ret N/A self filter_str True parent N/A test_vdp_port_up_old_nwk N/A N/A self N/A N/A N/A Tests the case when a VM comes for an existing network  N/A parent N/A N/A mock MagicMock N/A N/A N/A parent attach_mock N/A self execute execute N/A N/A N/A self execute return_value Response from VDP
	mode = assoc
	mgrid2 = 0
	typeid = 0
	typeidver = 0
	uuid = 00000000-1111-2222-3333-444455556666
	filter = 3003-00:12:22:33:44:55-0
 N/A filter_str filter=0-00:11:22:33:44:55-20000 N/A stored_vlan 3003 N/A N/A N/A N/A self lldpad send_vdp_vnic_up port_uuid N/A self uuid vsiid N/A self vsiid mgrid N/A self mgrid typeid N/A self typeid typeid_ver N/A self typeidver gid N/A self gid mac N/A self mac vlan 0 new_network False N/A N/A N/A self _test_vnic_assert stored_vlan N/A N/A N/A N/A N/A self lldpad vdp_vif_map N/A N/A self uuid get vdp_vlan filter_str False parent N/A test_vdp_port_down N/A N/A self N/A N/A N/A Tests the case when a VM goes down  N/A parent N/A N/A mock MagicMock N/A N/A N/A parent attach_mock N/A self execute execute N/A filter_str filter=100-00:11:22:33:44:55-20000 N/A stored_vlan 100 N/A mode_str mode=deassoc N/A N/A N/A N/A self lldpad send_vdp_vnic_down port_uuid N/A self uuid vsiid N/A self vsiid mgrid N/A self mgrid typeid N/A self typeid typeid_ver N/A self typeidver gid N/A self gid mac N/A self mac vlan stored_vlan N/A N/A N/A N/A self execute assert_called_with N/A vdptool -T -i N/A self port_str -V deassoc -c mode_str -c N/A self mgrid_str -c N/A self typeid_str -c N/A self typeidver_str -c N/A self vsiid_str -c hints=none -c filter_str root_helper N/A self root_helper N/A N/A N/A self assertNotIn N/A self uuid N/A N/A self lldpad vdp_vif_map N/A N/A