PapiHistory: Use repr strings for argument values
[csit.git] / tests / vpp / func / l2bd / eth4p-eth-l2bdbasemaclrn-l2shg-func.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/shared/default.robot
16 | Resource | resources/libraries/robot/l2/l2_bridge_domain.robot
17 | Resource | resources/libraries/robot/shared/testing_path.robot
18 | Library  | resources.libraries.python.Trace
19 | Force Tags | HW_ENV | VM_ENV
20 | Test Setup | Set up functional test
21 | Test Teardown | Tear down functional test
22 | Documentation | *L2 bridge-domain test cases*
23 | ...
24 | ... | *[Top] Network Topologies:* TG=DUT1=DUT2=TG 3-node circular topology
25 | ... | with double parallel links.
26 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-ICMPv4 for L2 switching of
27 | ... | IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply
28 | ... | to all links.
29 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2
30 | ... | bridge-domain (L2BD) switching combined with MAC learning enabled
31 | ... | and Split Horizon Groups (SHG).
32 | ... | *[Ver] TG verification:* Test ICMPv4 (or ICMPv6) Echo Request packets
33 | ... | are sent in both directions by TG on links to DUT1 and DUT2; on
34 | ... | receive TG verifies packets for correctness and their IPv4 (IPv6)
35 | ... | src-addr, dst-addr and MAC addresses.
36 | ... | *[Ref] Applicable standard specifications:*
37
38 *** Variables ***
39 | ${bd_id1}= | 1
40 | ${bd_id2}= | 2
41
42 | ${shg1}= | 3
43 | ${shg2}= | 4
44
45 *** Test Cases ***
46 | TC01: DUT1 and DUT2 with L2BD (MAC learn) and SHG switch between four TG links
47 | | [Documentation]
48 | | ... | [Top] TG=DUT1=DUT2=TG. [Enc] Eth-IPv4-ICMPv4. [Cfg] On DUT1 and \
49 | | ... | DUT2 configure four i/fs into L2BD with MAC learning and the
50 | | ... | same SHG on i/fs towards TG. [Ver] Make TG verify ICMPv4 Echo
51 | | ... | Req pkts are switched thru DUT1 and DUT2 in both directions and
52 | | ... | are correct on receive; verify no pkts are switched thru SHG
53 | | ... | isolated interfaces. [Ref]
54 | | [Tags] | 3_NODE_DOUBLE_LINK_TOPO
55 | | Given Configure path for 3-node BD-SHG test | ${nodes['TG']}
56 | | ... | ${nodes['DUT1']} | ${nodes['DUT2']}
57 | | And Set interfaces in 3-node BD-SHG test up
58 | | When Create bridge domain | ${dut1_node} | ${bd_id1}
59 | | And Add interface to bridge domain | ${dut1_node} | ${dut1_to_tg_if1}
60 | | ... | ${bd_id1} | ${shg1}
61 | | And Add interface to bridge domain | ${dut1_node} | ${dut1_to_tg_if2}
62 | | ... | ${bd_id1} | ${shg1}
63 | | And Add interface to bridge domain | ${dut1_node} | ${dut1_to_dut2}
64 | | ... | ${bd_id1}
65 | | And Create bridge domain | ${dut2_node} | ${bd_id2}
66 | | And Add interface to bridge domain | ${dut2_node} | ${dut2_to_tg_if1}
67 | | ... | ${bd_id2} | ${shg2}
68 | | And Add interface to bridge domain | ${dut2_node} | ${dut2_to_tg_if2}
69 | | ... | ${bd_id2} | ${shg2}
70 | | And Add interface to bridge domain | ${dut2_node} | ${dut2_to_dut1}
71 | | ... | ${bd_id2}
72 | | Then Send ICMPv4 bidirectionally and verify received packets | ${tg_node}
73 | | ... | ${tg_to_dut1_if1} | ${tg_to_dut2_if1}
74 | | And Send ICMPv4 bidirectionally and verify received packets | ${tg_node}
75 | | ... | ${tg_to_dut1_if1} | ${tg_to_dut2_if2}
76 | | And Send ICMPv4 bidirectionally and verify received packets | ${tg_node}
77 | | ... | ${tg_to_dut1_if2} | ${tg_to_dut2_if1}
78 | | And Send ICMPv4 bidirectionally and verify received packets | ${tg_node}
79 | | ... | ${tg_to_dut1_if2} | ${tg_to_dut2_if2}
80 | | And Run Keyword And Expect Error | ICMP echo Rx timeout
81 | | ... | Send ICMPv4 bidirectionally and verify received packets
82 | | | ... | ${tg_node} | ${tg_to_dut1_if1} | ${tg_to_dut1_if2}
83 | | And Run Keyword And Expect Error | ICMP echo Rx timeout
84 | | ... | Send ICMPv4 bidirectionally and verify received packets
85 | | | ... | ${tg_node} | ${tg_to_dut2_if1} | ${tg_to_dut2_if2}