From 83e0a9fb40ba17a2d617e03d1d67938f568d5e65 Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Wed, 29 Mar 2017 08:08:44 +0100 Subject: ixia: Support of 1 NIC connection to trafficgen For some testcases it is useful to have only one connection between traffic generator and DUT. Thus IxNet class was extended to support such connection. Feature is enabled if both IXIA ports are set to the same value. New integration testcase ixnet_pvp_tput_1nic was created to demonstrate this feature. Unused code was removed from 3rd_party/ixia/ixnetrfc2544.tcl to simplify introduction of new features and to speed up IXIA configuration. JIRA: VSPERF-503 Change-Id: I92ab24fa58eeb1ccb7f00ac7f3530ffca7b99241 Signed-off-by: Martin Klozik Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Sridhar Rao Reviewed-by: Trevor Cooper --- conf/integration/01_testcases.conf | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'conf') diff --git a/conf/integration/01_testcases.conf b/conf/integration/01_testcases.conf index 504b4458..489c7a57 100644 --- a/conf/integration/01_testcases.conf +++ b/conf/integration/01_testcases.conf @@ -934,6 +934,48 @@ INTEGRATION_TESTS = [ ] + STEP_VSWITCH_PVVP_FINIT # STEP 21... }, + { + # Testcase to demonstrate 1 port connection between DUT and IXIA traffic + # generator. Testcase will enforce IxNet trafficgen and it will configure + # both ports to the value of TRAFFICGEN_IXIA_PORT1 to indicate one port + # connection. + # Please note, that it is essential to ensure that TRAFFICGEN_IXIA_PORT1 + # is physically connected to the first NIC from WHITELIST_NICS list. + "Name": "ixnet_pvp_tput_1nic", + "Deployment": "clean", + "Description": "PVP Scenario with 1 port towards IXIA", + "Parameters" : { + "TRAFFICGEN" : "IxNet", + "TRAFFIC" : { + "traffic_type" : "rfc2544_throughput", + # we are using one port, thus it's already a bidir connection + "bidir" : "False", + }, + }, + "TestSteps": [ + ['vswitch', 'add_switch', 'int_br0'], # STEP 0 + ['vswitch', 'add_phy_port', 'int_br0'], # STEP 1 + ['vswitch', 'add_vport', 'int_br0'], # STEP 2 + ['vswitch', 'add_vport', 'int_br0'], # STEP 3 + ['vswitch', 'add_flow', 'int_br0', + {'in_port': '#STEP[1][1]', 'actions': ['output:#STEP[2][1]'], + 'idle_timeout': '0'}], # STEP 4 + ['vswitch', 'add_flow', 'int_br0', + {'in_port': '#STEP[3][1]', 'actions': ['output:#STEP[1][1]'], + 'idle_timeout': '0'}], # STEP 5 + ['vnf', 'start'], # STEP 6 + ['settings', 'getValue', 'TRAFFICGEN_IXIA_PORT1'], # STEP 7 + ['settings', 'setValue', 'TRAFFICGEN_IXIA_PORT2', '#STEP[-1]'], + ['trafficgen', 'send_traffic', {}], + ['vswitch', 'dump_flows', 'int_br0'], + ['vswitch', 'del_flow', 'int_br0', {'in_port': '#STEP[1][1]'}], + ['vswitch', 'del_flow', 'int_br0', {'in_port': '#STEP[3][1]'}], + ['vswitch', 'del_port', 'int_br0', '#STEP[1][0]'], + ['vswitch', 'del_port', 'int_br0', '#STEP[2][0]'], + ['vswitch', 'del_port', 'int_br0', '#STEP[3][0]'], + ['vswitch', 'del_switch', 'int_br0'], + ] + }, ] # Example of TC definition with exact vSwitch, VNF and TRAFFICGEN values. -- cgit 1.2.3-korg