Support suite tags in autogen
[csit.git] / tests / vpp / device / crypto / eth2p-ethip6ipsec1tnlsw-ip6base-policy-aes-128-cbc-sha-512-256-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 | IP6FWD | IPSEC | IPSECSW | IPSECTUN | IP6BASE
19 | ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES | DRV_VFIO_PCI
20 | ... | ethip6ipsec1tnlsw-ip6base-policy-aes-128-cbc-sha-512-256
21 |
22 | Suite Setup | Setup suite single link | scapy
23 | Test Setup | Setup test
24 | Test Teardown | Tear down test | packet_trace
25 |
26 | Test Template | Local Template
27 |
28 | Documentation | *IPv6 IPsec tunnel mode test suite.*
29 |
30 | ... | *[Top] Network topologies:* TG-DUT1 2-node topology with one link\
31 | ... | between nodes.
32 | ... | *[Cfg] DUT configuration:* On DUT1 create loopback interface, configure
33 | ... | loopback an physical interface IPv6 addresses, static ARP record, route
34 | ... | and IPsec manual keyed connection in tunnel mode.
35 | ... | *[Ver] TG verification:* ESP packet is sent from TG to DUT1. ESP packet
36 | ... | is received on TG from DUT1.
37 | ... | *[Ref] Applicable standard specifications:* RFC4303.
38
39 *** Variables ***
40 | @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
41 | ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
42 | ${crypto_type}= | ${None}
43 | ${nic_name}= | virtual
44 | ${nic_driver}= | vfio-pci
45 | ${overhead}= | ${54}
46 | ${tg_spi}= | ${1000}
47 | ${dut_spi}= | ${1001}
48 | ${ESP_PROTO}= | ${50}
49 | ${tg_if1_ip6}= | 3ffe:5f::1
50 | ${tg_if2_ip6}= | 3ffe:60::4
51 | ${dut_if1_ip6}= | 3ffe:5f::2
52 | ${dut_if2_ip6}= | 3ffe:60::3
53 | ${tg_host_ip6}= | 3ffe:61::3
54 | ${ip6_plen}= | ${64}
55 | ${ip6_plen_rt}= | ${128}
56
57 *** Keywords ***
58 | Local Template
59 | | [Documentation]
60 | | ... | [Cfg] On DUT1 configure IPsec manual keyed connection with encryption\
61 | | ... | algorithm AES_128_CBC and integrity algorithm HMAC_SHA_512 in tunnel\
62 | | ... | mode.
63 | |
64 | | ... | *Arguments:*
65 | | ... | - frame_size - Framesize in Bytes in integer. Type: integer
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 | | # These are enums (not strings) so they cannot be in Variables table.
74 | | ${encr_alg}= | Crypto Alg AES CBC 128
75 | | ${auth_alg}= | Integ Alg SHA 512 256
76 | |
77 | | Given Set Max Rate And Jumbo
78 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
79 | | And Pre-initialize layer driver | ${nic_driver}
80 | | And Apply startup configuration on all VPP DUTs | with_trace=${True}
81 | | When Initialize layer driver | ${nic_driver}
82 | | And Initialize layer interface
83 | | And Configure topology for IPv6 IPsec testing
84 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
85 | | And Configure manual keyed connection for IPSec
86 | | ... | ${dut1} | ${dut1_if1} | ${encr_alg} | ${encr_key} | ${auth_alg}
87 | | ... | ${auth_key} | ${dut_spi} | ${tg_spi} | ${tg_dst_ip} | ${tg_src_ip}
88 | | ... | ${dut_tun_ip} | ${tg_tun_ip} | is_ipv6=${TRUE}
89 | | Then Send IPsec Packet and verify ESP encapsulation in received packet
90 | | ... | ${tg} | ${tg_if1} | ${tg_if2} | ${dut1_if1_mac} | ${dut1_if2_mac}
91 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key} | ${tg_spi}
92 | | ... | ${dut_spi} | ${tg_src_ip} | ${tg_dst_ip} | ${tg_tun_ip}
93 | | ... | ${dut_tun_ip}
94
95 *** Test Cases ***
96 | tc01-124B-ethip6ipsec1tnlsw-ip6base-policy-aes-128-cbc-sha-512-256-dev
97 | | [Tags] | 124B
98 | | frame_size=${124} | phy_cores=${0}