3370cabaa46dc8cba037f00d7d634a99ded56f1c
[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 | Resource | resources/libraries/robot/default.robot
16 | Resource | resources/libraries/robot/l2_xconnect.robot
17 | Resource | resources/libraries/robot/l2_traffic.robot
18 | Resource | resources/libraries/robot/interfaces.robot
19 | Library | resources.libraries.python.NodePath
20 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | HW_ENV | VM_ENV
21 | Test Setup | Setup all DUTs before test
22 | Suite Setup | Setup all TGs before traffic script
23
24
25 *** Test Cases ***
26 | Vpp forwards packets via L2 xconnect in circular topology
27 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']} | ${nodes['TG']}
28 | | Compute Path
29 | | ${tg_if1} | ${tg}= | Next Interface
30 | | ${dut1_if1} | ${dut1}= | Next Interface
31 | | ${dut1_if2} | ${dut1}= | Next Interface
32 | | ${dut2_if1} | ${dut2}= | Next Interface
33 | | ${dut2_if2} | ${dut2}= | Next Interface
34 | | ${tg_if2} | ${tg}= | Next Interface
35 | | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1_if2}
36 | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${dut2_if2}
37 | | All Vpp Interfaces Ready Wait | ${nodes}
38 | | Send and receive ICMPv4 | ${tg} | ${tg_if1} | ${tg_if2}
39 | | Send and receive ICMPv4 | ${tg} | ${tg_if2} | ${tg_if1}