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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
14 | Resource | resources/libraries/robot/default.robot
15 | Resource | resources/libraries/robot/interfaces.robot
16 | Resource | resources/libraries/robot/l2_xconnect.robot
17 | Resource | resources/libraries/robot/performance.robot
18 | Resource | resources/libraries/robot/counters.robot
19 | Library | resources.libraries.python.TrafficGenerator
20 | Library | resources.libraries.python.InterfaceUtil
21 | Library | resources.libraries.python.NodePath
22 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV
23 | Suite Setup | 3-node Performance Suite Setup
24 | Suite Teardown | 3-node Performance Suite Teardown
25 | Test Setup | Setup all DUTs before test
26 | Test Teardown | Run Keyword If Test Failed | Show statistics on all DUTs
29 | 1core VPP passes 64B frames through L2 cross connect at 3.5mpps in 3-node topology
30 | | Given L2 xconnect initialized in a 3-node circular topology
31 | | Then Traffic should pass with no loss | 10 | 3.5mpps | 64 | 3-node-xconnect
33 | 1core VPP passes 1518B frames through L2 cross connect at 10gbps in 3-node topology
34 | | Given L2 xconnect initialized in a 3-node circular topology
35 | | Then Traffic should pass with no loss | 10 | 10gbps | 1518 | 3-node-xconnect
37 | 1core VPP passes 9000B frames through L2 cross connect at 10gbps in 3-node topology
38 | | Given L2 xconnect initialized in a 3-node circular topology
39 | | Then Traffic should pass with no loss | 10 | 10gbps | 9000 | 3-node-xconnect
43 | 3-node Performance Suite Setup
44 | | 3-node circular Topology Variables Setup
45 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
46 | | ... | ${dut1} | ${dut1_if1} | ${dut1_if2}
47 | | ... | ${dut2} | ${dut2_if1} | ${dut2_if2}
50 | 3-node Performance Suite Teardown
51 | | Teardown traffic generator | ${tg}
53 | L2 xconnect initialized in a 3-node circular topology
54 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1_if2}
55 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${dut2_if2}
56 | | All Vpp Interfaces Ready Wait | ${nodes}
58 | Traffic should pass with no loss
59 | | [Arguments] | ${duration} | ${rate} | ${framesize} | ${topology_type}
60 | | Send traffic on | ${nodes} | ${duration}
61 | | ... | ${rate} | ${framesize} | ${topology_type}
62 | | No traffic loss occured
64 | Show statistics on all DUTs
65 | | Sleep | 10 | Waiting for statistics to be collected
66 | | Vpp show stats | ${dut1}
67 | | Vpp show stats | ${dut2}