Move Send and receive L2 traffic KWs to standalone file.
[csit.git] / tests / suites / bridge_domain / test.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/interfaces.robot
17 | Resource | resources/libraries/robot/bridge_domain.robot
18 | Resource | resources/libraries/robot/l2_traffic.robot
19 | Library | resources.libraries.python.topology.Topology
20 | Library | resources.libraries.python.NodePath
21 | Variables | resources/libraries/python/topology.py
22 | Force Tags | HW_ENV | VM_ENV
23 | Suite Setup | Setup all TGs before traffic script
24 | Test Setup | Setup all DUTs before test
25
26 *** Test Cases ***
27 | VPP reports interfaces
28 | | VPP reports interfaces on | ${nodes['DUT1']}
29
30 | Vpp forwards packets via L2 bridge domain 2 ports
31 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
32 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
33 | | Compute Path | always_same_link=${FALSE}
34 | | ${tg_if1} | ${tmp}= | First Interface
35 | | ${tg_if2} | ${tmp}= | Last Interface
36 | | ${bd_if1} | ${tmp}= | First Ingress Interface
37 | | ${bd_if2} | ${tmp}= | Last Egress Interface
38 | | Vpp l2bd forwarding setup | ${nodes['DUT1']} | ${bd_if1} | ${bd_if2}
39 | | Send and receive ICMPv4 | ${nodes['TG']} | ${tg_if1} | ${tg_if2}
40 | | Send and receive ICMPv4 | ${nodes['TG']} | ${tg_if2} | ${tg_if1}
41
42 | Vpp forwards packets via L2 bridge domain in circular topology
43 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO
44 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
45 | | ...          | ${nodes['TG']}
46 | | Compute Path
47 | | ${tg_if1} | ${tg}= | Next Interface
48 | | ${dut1_if1} | ${dut1}= | Next Interface
49 | | ${dut1_if2} | ${dut1}= | Next Interface
50 | | ${dut2_if1} | ${dut2}= | Next Interface
51 | | ${dut2_if2} | ${dut2}= | Next Interface
52 | | ${tg_if2} | ${tg}= | Next Interface
53 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2}
54 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2}
55 | | Send and receive ICMPv4 | ${tg} | ${tg_if1} | ${tg_if2}
56 | | Send and receive ICMPv4 | ${tg} | ${tg_if2} | ${tg_if1}
57
58 | Vpp forwards packets via L2 bridge domain in circular topology with static L2FIB entries
59 | | [Tags] | 3_NODE_SINGLE_LINK_TOPO
60 | | Append Nodes | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['DUT2']}
61 | | ...          | ${nodes['TG']}
62 | | Compute Path
63 | | ${tg_if1} | ${tg}= | Next Interface
64 | | ${dut1_if1} | ${dut1}= | Next Interface
65 | | ${dut1_if2} | ${dut1}= | Next Interface
66 | | ${dut2_if1} | ${dut2}= | Next Interface
67 | | ${dut2_if2} | ${dut2}= | Next Interface
68 | | ${tg_if2} | ${tg}= | Next Interface
69 | | ${mac}= | Get Interface Mac | ${tg} | ${tg_if2}
70 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2} | ${FALSE}
71 | | ...                       | ${mac}
72 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2} | ${FALSE}
73 | | ...                       | ${mac}
74 | | Send and receive ICMPv4 | ${tg} | ${tg_if1} | ${tg_if2}
75 | | Send and receive ICMPv4 | ${tg} | ${tg_if2} | ${tg_if1}