X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fperformance%2Fperformance_setup.robot;h=68f84b664f79206e430df73be907ab0fc6b8449f;hp=9713c2268a9d26e4254f70a646ac328a940cac2d;hb=0ba508f0eac819c1985e825857f584b3d1537ffe;hpb=9a261ea61549fc6a5c23369d2e236b002dc35038 diff --git a/resources/libraries/robot/performance/performance_setup.robot b/resources/libraries/robot/performance/performance_setup.robot index 9713c2268a..68f84b664f 100644 --- a/resources/libraries/robot/performance/performance_setup.robot +++ b/resources/libraries/robot/performance/performance_setup.robot @@ -355,18 +355,24 @@ | | ... | *Arguments:* | | ... | - topology_type - Topology type. Type: string | | ... | - nic_model - Interface model. Type: string +| | ... | - crypto_type - Crypto device type - HW_cryptodev or SW_cryptodev +| | ... | (Optional). Type: string, default value: HW_cryptodev | | ... | | ... | *Example:* | | ... | | ... | \| Set up IPSec performance test suite \| L2 \ | | ... | \| Intel-X520-DA2 \| | | ... -| | [Arguments] | ${topology_type} | ${nic_model} +| | [Arguments] | ${topology_type} | ${nic_model} | ${crypto_type}=HW_cryptodev | | ... | | Set up 3-node performance topology with DUT's NIC model | | ... | ${topology_type} | ${nic_model} -| | Configure crypto device on all DUTs | force_init=${True} -| | Configure kernel module on all DUTs | igb_uio | force_load=${True} +| | ${numvfs}= | Set Variable If +| | ... | '${crypto_type}' == 'HW_cryptodev' | ${32} +| | ... | '${crypto_type}' == 'SW_cryptodev' | ${0} +| | Configure crypto device on all DUTs | force_init=${True} | numvfs=${numvfs} +| | Run Keyword If | '${crypto_type}' == 'HW_cryptodev' +| | ... | Configure kernel module on all DUTs | igb_uio | force_load=${True} | Set up performance topology with containers | | [Documentation] @@ -437,6 +443,7 @@ | | ... | | [Arguments] | ${rate} | ${framesize} | ${topology_type} | | ... +| | Remove All Added Ports On All DUTs From Topology | ${nodes} | | Show VAT History On All DUTs | ${nodes} | | Show statistics on all DUTs | ${nodes} | | Run Keyword If Test Failed @@ -446,12 +453,14 @@ | Tear down performance ndrchk test | | [Documentation] | Common test teardown for ndrchk performance tests. | | ... +| | Remove All Added Ports On All DUTs From Topology | ${nodes} | | Show VAT History On All DUTs | ${nodes} | | Show statistics on all DUTs | ${nodes} | Tear down performance pdrchk test | | [Documentation] | Common test teardown for pdrchk performance tests. | | ... +| | Remove All Added Ports On All DUTs From Topology | ${nodes} | | Show VAT History On All DUTs | ${nodes} | | Show statistics on all DUTs | ${nodes} @@ -478,6 +487,7 @@ | | ... | ${dut1_node}=${None} | ${dut1_vm_refs}=${None} | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None} | | ... +| | Remove All Added Ports On All DUTs From Topology | ${nodes} | | Show VAT History On All DUTs | ${nodes} | | Show VPP vhost on all DUTs | ${nodes} | | Show statistics on all DUTs | ${nodes} @@ -512,6 +522,7 @@ | | ... | ${dut1_node}=${None} | ${dut1_vm_refs}=${None} | | ... | ${dut2_node}=${None} | ${dut2_vm_refs}=${None} | | ... +| | Remove All Added Ports On All DUTs From Topology | ${nodes} | | Show VAT History On All DUTs | ${nodes} | | Show VPP vhost on all DUTs | ${nodes} | | Show statistics on all DUTs | ${nodes} @@ -598,6 +609,7 @@ | | ... | | Tear down performance discovery test | ${rate} | ${framesize} | | ... | ${traffic_profile} -| | Run Keyword And Ignore Error | Vpp Log Macip Acl Settings | ${dut1} +| | Run Keyword If Test Failed | Run Keyword And Ignore Error +| | ... | Vpp Log Macip Acl Settings | ${dut1} | | Run Keyword And Ignore Error | | ... | Vpp Log Macip Acl Interface Assignment | ${dut1}