X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fperformance.robot;h=c275f77a22396406557067d0751d293e1b969817;hp=58c8f568d14200e6950a9064d268077261a7069f;hb=c62252736158be8cf740905c35400085d3478369;hpb=81fc408c0dfcce0e093733810d80598abf25866a diff --git a/resources/libraries/robot/performance.robot b/resources/libraries/robot/performance.robot index 58c8f568d1..c275f77a22 100644 --- a/resources/libraries/robot/performance.robot +++ b/resources/libraries/robot/performance.robot @@ -779,6 +779,48 @@ | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if2} | ${vhost_if2} | | All Vpp Interfaces Ready Wait | ${nodes} +| L2 xconnect with Vhost-User for '${nr}' initialized in a 3-node circular topology +| | [Documentation] +| | ... | Create pairs of Vhost-User interfaces on all defined VPP nodes. Cross +| | ... | connect each Vhost interface with one physical interface or virtual +| | ... | interface to create a chain accross DUT node. +| | ... +| | ... | *Arguments:* +| | ... | _None_ +| | ... +| | ... | *Note:* +| | ... | Socket paths for VM are defined in following format: +| | ... | - /tmp/sock-${VM_ID}-1 +| | ... | - /tmp/sock-${VM_ID}-2 +| | ... +| | ... | *Example:* +| | ... +| | ... | \| L2 xconnect with Vhost-User for '2' initialized in a 3-node \ +| | ... | circular topology \| +| | ... +| | :FOR | ${number} | IN RANGE | 1 | ${nr}+1 +| | | ${sock1}= | Set Variable | /tmp/sock-${number}-1 +| | | ${sock2}= | Set Variable | /tmp/sock-${number}-2 +| | | ${prev_index}= | Evaluate | ${number}-1 +| | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1} +| | | ... | ${sock1} | ${sock2} | dut1-vhost-${number}-if1 +| | | ... | dut1-vhost-${number}-if2 +| | | ${dut1_xconnect_if1}= | Set Variable If | ${number}==1 | ${dut1_if1} +| | | ... | ${dut1-vhost-${prev_index}-if2} +| | | L2 setup xconnect on DUT | ${dut1} | ${dut1_xconnect_if1} +| | | ... | ${dut1-vhost-${number}-if1} +| | | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2} +| | | ... | ${sock1} | ${sock2} | dut2-vhost-${number}-if1 +| | | ... | dut2-vhost-${number}-if2 +| | | ${dut2_xconnect_if1}= | Set Variable If | ${number}==1 | ${dut2_if1} +| | | ... | ${dut2-vhost-${prev_index}-if2} +| | | L2 setup xconnect on DUT | ${dut2} | ${dut2_xconnect_if1} +| | | ... | ${dut2-vhost-${number}-if1} +| | | Run Keyword If | ${number}==${nr} | L2 setup xconnect on DUT +| | | ... | ${dut1} | ${dut1-vhost-${number}-if2} | ${dut1_if2} +| | | Run Keyword If | ${number}==${nr} | L2 setup xconnect on DUT +| | | ... | ${dut2} | ${dut2-vhost-${number}-if2} | ${dut2_if2} + | L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology | | [Documentation] | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Cross