X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fcounters.robot;h=3591dd5fe7787536d6a5c901407b6aec790b28c6;hb=859157b5db45927c7b4bb0b2d575e68805777a86;hp=0cb18c15db2feaf39ecdc89300e923d911b385d3;hpb=180d17939d123c04bf142cedf02daa325e3f4fa6;p=csit.git diff --git a/resources/libraries/robot/counters.robot b/resources/libraries/robot/counters.robot index 0cb18c15db..3591dd5fe7 100644 --- a/resources/libraries/robot/counters.robot +++ b/resources/libraries/robot/counters.robot @@ -21,12 +21,12 @@ | | [Arguments] | ${nodes} | | Vpp Nodes Clear Interface Counters | ${nodes} -| Vpp dump stats +| Get interface statistics | | [Documentation] | Dump stats table on VPP node | | [Arguments] | ${node} | | Vpp Dump Stats Table | ${node} -| Vpp get interface ipv6 counter +| Get interface ipv6 counter | | [Documentation] | Return IPv6 statistics for node interface | | [Arguments] | ${node} | ${interface} | | ${ipv6_counter}= | Vpp Get Ipv6 Interface Counter | ${node} | ${interface} @@ -38,22 +38,54 @@ | | ${ipv4_counter}= | Vpp get ipv4 interface counter | ${node} | ${interface} | | Should Be Equal | ${ipv4_counter} | ${value} -| Vpp show stats +| Show statistics on all DUTs +| | [Documentation] | Show VPP statistics on all DUTs +| | Sleep | 10 | Waiting for statistics to be collected +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Show vpp statistics | ${nodes['${dut}']} + +| Show vpp statistics | | [Documentation] | Show [error, hardware, interface] stats | | [Arguments] | ${node} -| | Vpp Dump Stats Table | ${node} | | Vpp Show Errors | ${node} | | Vpp Show Hardware Detail | ${node} | | Vpp Show Runtime | ${node} -| Clear runtime statistics on all DUTs -| | [Documentation] | Clear VPP runtime statistics on all DUTs +| Clear all counters on all DUTs +| | [Documentation] | Clear runtime, interface, hardware and error counters +| | ... | on all DUTs with VPP instance +| | Clear runtime counters on all DUTs +| | Clear interface counters on all DUTs +| | Clear hardware counters on all DUTs +| | Clear error counters on all DUTs + +| Clear runtime counters on all DUTs +| | [Documentation] | Clear VPP runtime counters on all DUTs | | ${duts}= | Get Matches | ${nodes} | DUT* | | :FOR | ${dut} | IN | @{duts} | | | Vpp clear runtime | ${nodes['${dut}']} -| Show runtime statistics on all DUTs -| | [Documentation] | Show VPP runtime statistics on all DUTs +| Clear interface counters on all DUTs +| | [Documentation] | Clear VPP interface counters on all DUTs +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp clear interface counters | ${nodes['${dut}']} + +| Clear hardware counters on all DUTs +| | [Documentation] | Clear VPP hardware counters on all DUTs +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp clear hardware counters | ${nodes['${dut}']} + +| Clear error counters on all DUTs +| | [Documentation] | Clear VPP errors counters on all DUTs +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Vpp clear errors counters | ${nodes['${dut}']} + +| Show runtime counters on all DUTs +| | [Documentation] | Show VPP runtime counters on all DUTs | | ${duts}= | Get Matches | ${nodes} | DUT* | | :FOR | ${dut} | IN | @{duts} | | | Vpp show runtime | ${nodes['${dut}']}