port_list=port_list, break_locks=1, config_file=config_file, ) if connect_result['status'] != '1': ErrorHandler('connect', connect_result) print "\nPrinting connection result\n" pprint(connect_result) ports = connect_result['vport_list'].split() print "\nRetrieving all QuickTest handles present in the config ...\n" test_control_status = ixiahlt.test_control(action='get_all_qt_handles') if test_control_status['status'] != '1': ErrorHandler('test_control', test_control_status) qt_handle = test_control_status['qt_handle'] print "\nHandle(s) retrieved: %s \n" % qt_handle #===============================> RETRIEVE INPUT PARAMS <========================================== print "\nRetrieving the input parameters of the QT(s)\n" test_control_status = ixiangpf.test_control( action='qt_get_input_params', qt_handle=qt_handle,
if _result_['status'] != IxiaHlt.SUCCESS: ErrorHandler('network_group_config', _result_) networkGroup_2_handle = _result_['network_group_handle'] ipv4PrefixPools_2_handle = _result_['ipv4_prefix_pools_handle'] ############################################################################ # Start PIM protocol # ############################################################################ print "Waiting 5 seconds before starting protocol(s) ..." time.sleep(5) print "Starting all protocol(s) ..." _result_ = ixiahlt.test_control(action='start_all_protocols') # Check status if _result_['status'] != IxiaHlt.SUCCESS: ErrorHandler('test_control', _result_) print "Waiting for 60 Seconds" time.sleep(60) ############################################################################ # Retrieve protocol statistics # ############################################################################ print "fetching pimv4 aggregated statistics" protostats = ixiangpf.emulation_pim_info(\ handle = pimV4Interface_2_handle, mode = 'aggregate',
ethernet_diconnect_enabled="0", ethernet_disconnect_rate="200", ethernet_disconnect_interval="1000", ethernet_disconnect_scale_mode="port", ) if status['status'] != IxiaHlt.SUCCESS: ErrorHandler('interface_config', status) print('Waiting 60 seconds before starting protocol(s) ...') time.sleep(60) print('Starting all protocol(s) ...') ######################################################### #Starting Protocols ######################################################### status = ixiahlt.test_control(action='start_all_protocols') # Check status if status['status'] != IxiaHlt.SUCCESS: ErrorHandler('ixiahlt::traffic_control', status) print('Test case FAILED') print("Waiting for 90 seconds") time.sleep(60) # ----------------------------------------------------------------------------------------------------------- # Checking Stats for both the ports # ---------------------------------------------------------------------------------------------------------- handle_bfd_topology1 = '/topology:1/deviceGroup:1/ethernet:1/ipv4:1/bfdv4Interface:1' handle_bfd_topology2 = '/topology:2/deviceGroup:1/ethernet:1/ipv4:1/bfdv4Interface:1' handle_bfd_loop = '/topology:1/deviceGroup:1/deviceGroup:1/ipv4Loopback:1/bfdv4Interface:1' handle_bfd_loop1 = '/topology:2/deviceGroup:1/deviceGroup:1/ipv4Loopback:1/bfdv4Interface:1'