diff options
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. |