Performance suite: xconnect fix, show commands
[csit.git] / resources / libraries / robot / counters.robot
1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Documentation | VPP counters keywords
16 | Library | resources/libraries/python/VppCounters.py
17
18 *** Keywords ***
19 | Clear interface counters on all vpp nodes in topology
20 | | [Documentation] | Clear interface counters on all VPP nodes in topology
21 | | [Arguments] | ${nodes}
22 | | Vpp Nodes Clear Interface Counters | ${nodes}
23
24 | Vpp dump stats
25 | | [Documentation] | Dump stats table on VPP node
26 | | [Arguments] | ${node}
27 | | Vpp Dump Stats Table | ${node}
28
29 | Vpp get interface ipv6 counter
30 | | [Documentation] | Return IPv6 statistics for node interface
31 | | [Arguments] | ${node} | ${interface}
32 | | ${ipv6_counter}= | Vpp Get Ipv6 Interface Counter | ${node} | ${interface}
33 | | [Return] | ${ipv6_counter}
34
35 | Check ipv4 interface counter
36 | | [Documentation] | Check that ipv4 interface counter has right value
37 | | [Arguments] | ${node} | ${interface} | ${value}
38 | | ${ipv4_counter}= | Vpp get ipv4 interface counter | ${node} | ${interface}
39 | | Should Be Equal | ${ipv4_counter} | ${value}
40
41 | Vpp show stats
42 | | [Documentation] | Show [error, hardware, interface] stats
43 | | [Arguments] | ${node}
44 | | Vpp Dump Stats Table | ${node}
45 | | Vpp Show Errors Verbose | ${node}
46 | | Vpp Show Hardware Detail | ${node}
47 | | Vpp Show Runtime Verbose | ${node}