New version of RF tests.
[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 *** Settings ***
14 | Resource | resources/libraries/robot/default.robot
15 | Resource | resources/libraries/robot/interfaces.robot
16 | Resource | resources/libraries/robot/bridge_domain.robot
17 | Test Setup | Setup all DUTs before test
18 | Library | resources.libraries.python.topology.Topology
19 | Variables | resources/libraries/python/topology.py
20 | Force Tags | 3_NODE_DOUBLE_LINK_TOPO
21
22 *** Test Cases ***
23
24 | VPP reports interfaces
25 | | VPP reports interfaces on | ${nodes['DUT1']}
26
27 | Vpp forwards packets via L2 bridge domain 2 ports
28 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
29 | | ${TG_DUT_links}= | Get active links connecting "${nodes['TG']}" and "${nodes['DUT1']}"
30 | | Setup l2 bridge on node "${nodes['DUT1']}" via links "${TG_DUT_links}"
31 | | Send traffic on node "${nodes['TG']}" from link "${TG_DUT_links[0]}" to link "${TG_DUT_links[1]}"
32
33 | Vpp forwards packets via L2 bridge domain in circular topology
34 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
35 | | ${tg}= | Set Variable | ${nodes['TG']}
36 | | ${dut1}= | Set Variable | ${nodes['DUT1']}
37 | | ${dut2}= | Set Variable | ${nodes['DUT2']}
38 | | ${tg_links}= | Setup TG "${tg}" DUT1 "${dut1}" and DUT2 "${dut2}" for 3 node l2 bridge domain test
39 | | Send traffic on node "${nodes['TG']}" from link "${tg_links[0]}" to link "${tg_links[1]}"