47aae65d10c0fc7b36ec9c501cb4fc290e9dbca0
[csit.git] / tests / vpp / device / l2bd / eth2p-eth-l2bdbasemaclrn-dev.robot
1 # Copyright (c) 2018 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.L2Util
16 | Resource | resources/libraries/robot/shared/default.robot
17 | Resource | resources/libraries/robot/l2/l2_bridge_domain.robot
18 | Resource | resources/libraries/robot/l2/l2_traffic.robot
19 | Resource | resources/libraries/robot/shared/interfaces.robot
20 | Resource | resources/libraries/robot/shared/testing_path.robot
21 | ...
22 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV
23 | ... | FUNCTEST | L2BDMACLRN | BASE | ETH | ICMP
24 | ...
25 | Suite Setup | Setup suite single link
26 | Test Setup | Setup test
27 | Test Teardown | Tear down test
28 | ...
29 | Documentation | *L2 bridge-domain test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology \
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-ICMPv4 for L2 switching of \
34 | ... | IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all \
35 | ... | links.
36 | ... | *[Cfg] DUT configuration:* DUT1 is configured with L2 bridge-domain \
37 | ... | switching.
38 | ... | *[Ver] TG verification:* Test ICMPv4 (or ICMPv6) Echo Request packets \
39 | ... | are sent in both directions by TG on links to DUT1; on receive TG \
40 | ... | verifies packets for correctness and their IPv4 (IPv6) src-addr, \
41 | ... | dst-addr and MAC addresses.
42 | ... | *[Ref] Applicable standard specifications:* RFC792
43
44 *** Variables ***
45 | @{plugins_to_enable}= | dpdk_plugin.so
46 | ${nic_name}= | virtual
47 | ${bd_id}= | 1
48
49 *** Test Cases ***
50 | tc01-eth2p-ethicmpv4-l2bdbase-device
51 | | [Documentation]
52 | | ... | [Top] TG-DUT1-TG. [Enc] Eth-IPv4-ICMPv4.
53 | | ... | [Cfg] Configure L2 bridge-domain (L2BD) with MAC learning enabled on \
54 | | ... | DUT1. Add both interfaces towards TG to this L2BD.
55 | | ... | [Ver] Make TG send ICMPv4 Echo Req in both directions between two of \
56 | | ... | its interfaces to be switched by DUT1; verify all packets are \
57 | | ... | received.
58 | | ...
59 | | Given Add PCI devices to all DUTs
60 | | And Apply startup configuration on all VPP DUTs
61 | | And VPP Enable Traces On All Duts | ${nodes}
62 | | When Configure path in 2-node circular topology
63 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
64 | | And Configure interfaces in path up
65 | | And Create bridge domain | ${dut_node} | ${bd_id}
66 | | And Add interface to bridge domain | ${dut_node} | ${dut_to_tg_if1}
67 | | ... | ${bd_id}
68 | | And Add interface to bridge domain | ${dut_node} | ${dut_to_tg_if2}
69 | | ... | ${bd_id}
70 | | And All Vpp Interfaces Ready Wait | ${nodes}
71 | | Then Send ICMPv4 bidirectionally and verify received packets | ${tg_node}
72 | | ... | ${tg_to_dut_if1} | ${tg_to_dut_if2}
73 | | ...
74 | | And VPP get bridge domain data | ${nodes['DUT1']}
75 | | And Get L2 Fib Table | ${nodes['DUT1']} | ${bd_id}
76
77 | tc02-eth2p-ethicmpv6-l2bdbase-device
78 | | [Documentation]
79 | | ... | [Top] TG-DUT1-TG. [Enc] Eth-IPv6-ICMPv6.
80 | | ... | [Cfg] Configure L2 bridge-domain (L2BD) with MAC learning enabled on \
81 | | ... | DUT1. Add both interfaces towards TG to this L2BD.
82 | | ... | [Ver] Make TG send ICMPv6 Echo Req in both directions between two of \
83 | | ... | its interfaces to be switched by DUT1; verify all packets are \
84 | | ... | received.
85 | | ...
86 | | Given Add PCI devices to all DUTs
87 | | And Apply startup configuration on all VPP DUTs
88 | | And VPP Enable Traces On All Duts | ${nodes}
89 | | When Configure path in 2-node circular topology
90 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
91 | | And Configure interfaces in path up
92 | | And Create bridge domain | ${dut_node} | ${bd_id}
93 | | And Add interface to bridge domain | ${dut_node} | ${dut_to_tg_if1}
94 | | ... | ${bd_id}
95 | | And Add interface to bridge domain | ${dut_node} | ${dut_to_tg_if2}
96 | | ... | ${bd_id}
97 | | And All Vpp Interfaces Ready Wait | ${nodes}
98 | | Then Send ICMPv6 bidirectionally and verify received packets
99 | | ... | ${tg_node} | ${tg_to_dut_if1} | ${tg_to_dut_if2}
100 | | VPP get bridge domain data | ${nodes['DUT1']} | bd_id=${bd_id}