X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fperformance.robot;h=0aefdef1d79a63800a00690694a76039275e2eaa;hp=e9ec9487721b5e0c13b2d7dd851f8977050f3700;hb=13809a4ee66ec5e9c92ac3600805251791dfcd2b;hpb=f5ec27c189231b0c5b8399b39edbf47b462d894e diff --git a/resources/libraries/robot/performance.robot b/resources/libraries/robot/performance.robot index e9ec948772..0aefdef1d7 100644 --- a/resources/libraries/robot/performance.robot +++ b/resources/libraries/robot/performance.robot @@ -208,6 +208,7 @@ | | ... | | ... | \| Calculate pps \| 10000000000 | 64 | | [Arguments] | ${bps} | ${framesize} +| | ${framesize}= | Get Frame Size | ${framesize} | | ${ret}= | Evaluate | (${bps}/((${framesize}+20)*8)).__trunc__() | | Return From Keyword | ${ret} @@ -605,6 +606,36 @@ | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut2_vif2} | | ... | vrf=${fib_table_2} +| IPv4 policer 2r3c-${t} initialized in a 3-node circular topology +| | [Documentation] +| | ... | Setup of 2r3c color-aware or color-blind policer with dst ip match +| | ... | on all DUT nodes in 3-node circular topology. Policer is applied on +| | ... | links TG - DUT1 and DUT2 - TG. +| | ... +| | ${dscp}= | DSCP AF22 +| | Policer Set Name | policer1 +| | Policer Set CIR | ${cir} +| | Policer Set EIR | ${eir} +| | Policer Set CB | ${cb} +| | Policer Set EB | ${eb} +| | Policer Set Rate Type pps +| | Policer Set Round Type Closest +| | Policer Set Type 2R3C 2698 +| | Policer Set Conform Action Transmit +| | Policer Set Exceed Action Mark and Transmit | ${dscp} +| | Policer Set Violate Action Transmit +| | Policer Enable Color Aware +| | Run Keyword If | ${t} == 'ca' | Policer Enable Color Aware +| | Policer Classify Set Precolor Exceed +| | Policer Set Node | ${dut1} +| | Policer Classify Set Interface | ${dut1_if1} +| | Policer Classify Set Match IP | 20.20.20.2 | ${False} +| | Policer Set Configuration +| | Policer Set Node | ${dut2} +| | Policer Classify Set Interface | ${dut2_if2} +| | Policer Classify Set Match IP | 10.10.10.2 | ${False} +| | Policer Set Configuration + | IPv6 forwarding initialized in a 3-node circular topology | | [Documentation] | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular