diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2017-03-29 08:08:44 +0100 |
---|---|---|
committer | Martin Klozik <martinx.klozik@intel.com> | 2017-04-19 12:06:58 +0100 |
commit | 83e0a9fb40ba17a2d617e03d1d67938f568d5e65 (patch) | |
tree | ff647e98b17a6d10b07c8250c16c7e848eef2a48 /conf | |
parent | 26ec31cb51f6c7fb9ef89cc437b69167be98b4bf (diff) |
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 <martinx.klozik@intel.com>
Reviewed-by: Al Morton <acmorton@att.com>
Reviewed-by: Christian Trautman <ctrautma@redhat.com>
Reviewed-by: Sridhar Rao <sridhar.rao@spirent.com>
Reviewed-by: Trevor Cooper <trevor.cooper@intel.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/integration/01_testcases.conf | 42 |
1 files changed, 42 insertions, 0 deletions
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. |