b1a53ef4e3582cbe9f6f099fffbaed9f84b02667
[csit.git] / resources / libraries / robot / l2 / l2_patch.robot
1 # Copyright (c) 2020 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 | Library | resources.libraries.python.InterfaceUtil
16 | Library | resources.libraries.python.L2Util
17
18 *** Keywords ***
19 | Initialize L2 patch
20 | | [Documentation]
21 | | ... | Setup L2 patch topology by cross connecting two interfaces on
22 | | ... | each DUT. Interfaces are brought up.
23 | |
24 | | FOR | ${dut} | IN | @{duts}
25 | | | VPP Setup Bidirectional L2 patch
26 | | | ... | ${nodes['${dut}']} | ${${dut}_${int}1}[0] | ${${dut}_${int}2}[0]
27 | | END
28 | | Set interfaces in path up