diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2017-04-20 08:35:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-04-20 08:35:17 +0000 |
commit | 0498b5fb3893e4331191808e3501d00b684af9b4 (patch) | |
tree | 500ccecc8438d7b23dbfc7cd8eadca115868b3e3 /conf/integration/01_testcases.conf | |
parent | e64800b3cf4cbfd89996cb56f1899b047f6cbdbc (diff) | |
parent | 83e0a9fb40ba17a2d617e03d1d67938f568d5e65 (diff) |
Merge "ixia: Support of 1 NIC connection to trafficgen"
Diffstat (limited to 'conf/integration/01_testcases.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. |