Test VIRL connection.
[csit.git] / tests / suites / l2_xconnect / l2_xconnect_untagged.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
16 | Resource | resources/libraries/robot/default.robot
17 | Resource | resources/libraries/robot/l2_xconnect.robot
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO
19 | Suite Setup | Run Keywords | Setup all DUTs before test
20 | ...         | AND          | Setup all TGs before traffic script
21 | ...         | AND          | Interfaces on all DUTs are in "up" state
22
23 *** Test Cases ***
24
25 | VPP forwards packets through xconnect in circular topology
26 | | Given L2 setup xconnect on DUTs
27 | | ${tg}= | Set Variable | ${nodes['TG']}
28 | | ${dut1}= | Set Variable | ${nodes['DUT1']}
29 | | ${dut2}= | Set Variable | ${nodes['DUT2']}
30 | | ${tg_links}= | Get traffic links between TG "${tg}" and DUT1 "${dut1}" and DUT2 "${dut2}"
31 | | Sleep | 10 | Work around VPP interface up taking too long.
32 | | Send traffic on node "${nodes['TG']}" from link "${tg_links[0]}" to link "${tg_links[1]}"
33