Support suite tags in autogen
[csit.git] / tests / vpp / device / l2bd / eth2p-avf-dot1q-l2bdbasemaclrn-gbp-dev.robot
1 # Copyright (c) 2019 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 |
17 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY
18 | ... | NIC_Virtual | DOT1Q | L2BDMACLRN | BASE | DRV_AVF | GBP
19 | ... | avf-dot1q-l2bdbasemaclrn-gbp
20 |
21 | Suite Setup | Setup suite single link | avf | scapy
22 | Suite Teardown | Tear down suite
23 | Test Setup | Setup test
24 | Test Teardown | Tear down test | packet_trace
25 |
26 | Test Template | Local template
27 |
28 | Documentation | *L2BD with IEEE 802.1Q and GBP test cases*
29 |
30 | ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology\
31 | ... | with single links between nodes.
32 | ... | *[Enc] Packet Encapsulations:* Dot1q-IPv4 for L2 switching of IPv4. \
33 | ... | IEEE 802.1Q tagging is applied on both links TG-DUT1 .
34 | ... | *[Cfg] DUT configuration:* DUT1 is configured with:\
35 | ... | 2 VLAN subinterfaces (VID 200 and 300),\
36 | ... | 1 L2 BD with the 2 VLAN subinterfaces and a BVI,\
37 | ... | 1 GBP L3 RD,\
38 | ... | 1 GBP L2 BD with the L2 BD,\
39 | ... | 1 GBP EPG EPG-1 with sclass 100, the GBP L2 BD and L3 RD,\
40 | ... | 2 GBP external EP in EPG-1,\
41 | ... | 2 external subnets with sclass 200 and 300,\
42 | ... | Contracts allowing full communications between the 2 external subnets.\
43 | ... | DUT1 tested with ${nic_name} with VF enabled.
44 | ... | *[Ver] TG verification:* Test IPv4 packets are sent in one direction \
45 | ... | by TG on link to DUT1; on receive TG verifies packets for correctness \
46 | ... | and drops as applicable.
47 | ... | *[Ref] Applicable standard specifications:* IEEE 802.1q.
48
49 *** Variables ***
50 | @{plugins_to_enable}= | avf_plugin.so | gbp_plugin.so | acl_plugin.so
51 | ${crypto_type}= | ${None}
52 | ${nic_name}= | virtual
53 | ${nic_driver}= | avf
54 | ${overhead}= | ${4}
55
56 *** Keywords ***
57 | Local template
58 | | [Documentation]
59 | | ... | [Ver] Make TG send IPv4 packet in one direction between two\
60 | | ... | of its interfaces to be switched by DUT to and from docker.\
61 | | ... | Make TG verify IPv4 packet is correct.
62 | |
63 | | ... | *Arguments:*
64 | | ... | - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1).
65 | | ... | Type: integer, string
66 | | ... | - phy_cores - Number of physical cores. Type: integer
67 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
68 | |
69 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
70 | |
71 | | Set Test Variable | \${frame_size}
72 | |
73 | | Given Set Max Rate And Jumbo
74 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
75 | | And Pre-initialize layer driver | ${nic_driver}
76 | | And Apply startup configuration on all VPP DUTs | with_trace=${True}
77 | | When Initialize layer driver | ${nic_driver}
78 | | And Initialize layer interface
79 | | And Initialize layer dot1q
80 | | And Initialize GBP routing domains
81 | | Then Send packet and verify headers
82 | | ... | ${tg} | 10.10.10.2 | 20.20.20.2
83 | | ... | ${tg_if1} | ${tg_if1_mac} | ba:dc:00:ff:ee:01
84 | | ... | ${tg_if2} | ba:dc:00:ff:ee:01 | ${tg_if2_mac}
85 | | ... | traffic_script=send_ip_check_headers
86
87 *** Test Cases ***
88 | tc01-64B-avf-dot1q-l2bdbasemaclrn-gbp-dev
89 | | [Tags] | 64B | 1C
90 | | frame_size=${64} | phy_cores=${0}