a8e18b1ad5d88ef66c3b131ca580399a31307f37
[csit.git] / resources / libraries / robot / performance.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 | Performance suite keywords
16
17 *** Keywords ***
18 | 3-node circular Topology Variables Setup
19 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
20 | | ...          | ${nodes['TG']}
21 | | Compute Path
22 | | ${tg_if1} | ${tg}= | Next Interface
23 | | ${dut1_if1} | ${dut1}= | Next Interface
24 | | ${dut1_if2} | ${dut1}= | Next Interface
25 | | ${dut2_if1} | ${dut2}= | Next Interface
26 | | ${dut2_if2} | ${dut2}= | Next Interface
27 | | ${tg_if2} | ${tg}= | Next Interface
28 | | Set Suite Variable | ${tg}
29 | | Set Suite Variable | ${tg_if1}
30 | | Set Suite Variable | ${tg_if2}
31 | | Set Suite Variable | ${dut1}
32 | | Set Suite Variable | ${dut1_if1}
33 | | Set Suite Variable | ${dut1_if2}
34 | | Set Suite Variable | ${dut2}
35 | | Set Suite Variable | ${dut2_if1}
36 | | Set Suite Variable | ${dut2_if2}
37