424ff3e689dd00aad8c87f1f61cab3a4d11f6636
[csit.git] / tests / vpp / device / ip6 / eth2p-ethip6-ip6base-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 | Resource | resources/libraries/robot/shared/default.robot
16 | Resource | resources/libraries/robot/ip/ip6.robot
17 | Resource | resources/libraries/robot/shared/interfaces.robot
18 | Resource | resources/libraries/robot/shared/traffic.robot
19 | ...
20 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV
21 | ... | FUNCTEST | IP6FWD | BASE | ETH | IP6BASE
22 | ...
23 | Suite Setup | Setup suite single link
24 | Test Setup | Setup test
25 | Test Teardown | Tear down test | packet_trace
26 | ...
27 | Documentation | *IPv6 routing test cases*
28 | ...
29 | ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology \
30 | ... | with single links between nodes.
31 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6-ICMPv6 for IPv6 routing on \
32 | ... | both links.
33 | ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv6 routing and \
34 | ... | two static IPv6 /64 route entries.
35 | ... | *[Ver] TG verification:* Test ICMPv6 Echo Request packets are sent in \
36 | ... | one direction by TG on links to DUT1; on receive TG verifies packets \
37 | ... | for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
38 | ... | *[Ref] Applicable standard specifications:* RFC2460, RFC4443, RFC4861
39
40 *** Variables ***
41 | @{plugins_to_enable}= | dpdk_plugin.so
42 | ${nic_name}= | virtual
43 | ${tg_to_dut_if1_ip6}= | 2001:1::2
44 | ${tg_to_dut_if2_ip6}= | 2001:2::2
45 | ${dut_to_tg_if1_ip6}= | 2001:1::1
46 | ${dut_to_tg_if2_ip6}= | 2001:2::1
47 | ${remote_host1_ip6}= | 3ffe:5f::1
48 | ${remote_host2_ip6}= | 3ffe:5f::2
49 | ${remote_host_ip6_prefix}= | 128
50
51 *** Test Cases ***
52 | tc01-eth2p-ethicmpv6-ip6base-device_echo-req-to-dut-ingress-interface
53 | | [Documentation]
54 | | ... | Make TG send ICMPv6 Echo Req to DUT1 ingress interface. Make TG \
55 | | ... | verify ICMPv6 Echo Reply is correct.
56 | | ...
57 | | ${hops}= | Set Variable | ${0}
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 IPv6 forwarding in circular topology | ${tg_to_dut_if1_ip6}
65 | | ... | ${tg_to_dut_if2_ip6} | ${dut_to_tg_if1_ip6} | ${dut_to_tg_if2_ip6}
66 | | And Suppress ICMPv6 router advertisement message | ${nodes}
67 | | And All Vpp Interfaces Ready Wait | ${nodes}
68 | | Then Send IPv6 echo request packet and verify headers | ${tg_node}
69 | | ... | ${tg_to_dut_if1} | ${dut_node} | ${dut_to_tg_if1}
70 | | ... | ${tg_to_dut_if1_ip6} | ${dut_to_tg_if1_ip6} | ${dut_to_tg_if1_mac}
71 | | ... | ${hops}
72 | | Get interface Ipv6 addresses | ${nodes['DUT1']} | ${dut_to_tg_if1}
73
74 | tc02-eth2p-ethicmpv6-ip6base-device_echo-req-to-dut-egress-interface
75 | | [Documentation]
76 | | ... | Make TG send ICMPv6 Echo Req towards DUT1 egress interface. Make TG \
77 | | ... | verify ICMPv6 Echo Reply is correct.
78 | | ...
79 | | ${hops}= | Set Variable | ${0}
80 | | ...
81 | | Given Add PCI devices to all DUTs
82 | | And Apply startup configuration on all VPP DUTs
83 | | And VPP Enable Traces On All Duts | ${nodes}
84 | | When Configure path in 2-node circular topology
85 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
86 | | And Configure IPv6 forwarding in circular topology | ${tg_to_dut_if1_ip6}
87 | | ... | ${tg_to_dut_if2_ip6} | ${dut_to_tg_if1_ip6} | ${dut_to_tg_if2_ip6}
88 | | And Suppress ICMPv6 router advertisement message | ${nodes}
89 | | And All Vpp Interfaces Ready Wait | ${nodes}
90 | | Then Send IPv6 echo request packet and verify headers | ${tg_node}
91 | | ... | ${tg_to_dut_if1} | ${dut_node} | ${dut_to_tg_if2}
92 | | ... | ${tg_to_dut_if1_ip6} | ${dut_to_tg_if2_ip6} | ${dut_to_tg_if1_mac}
93 | | ... | ${hops}
94
95 | tc03-eth2p-ethicmpv6-ip6base-device_echo-req-to-tg-interface-for-local-ipv4-address
96 | | [Documentation]
97 | | ... | Make TG send ICMPv6 Echo Req between its interfaces across DUT1 for \
98 | | ... | locally connected IPv6 addresses. Make TG verify ICMPv6 Echo Replies \
99 | | ... | are correct.
100 | | ...
101 | | ${hops}= | Set Variable | ${1}
102 | | ...
103 | | Given Add PCI devices to all DUTs
104 | | And Apply startup configuration on all VPP DUTs
105 | | And VPP Enable Traces On All Duts | ${nodes}
106 | | When Configure path in 2-node circular topology
107 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
108 | | And Configure IPv6 forwarding in circular topology | ${tg_to_dut_if1_ip6}
109 | | ... | ${tg_to_dut_if2_ip6} | ${dut_to_tg_if1_ip6} | ${dut_to_tg_if2_ip6}
110 | | And Suppress ICMPv6 router advertisement message | ${nodes}
111 | | And All Vpp Interfaces Ready Wait | ${nodes}
112 | | Then Send IPv6 echo request packet and verify headers | ${tg_node}
113 | | ... | ${tg_to_dut_if1} | ${tg_node} | ${tg_to_dut_if2}
114 | | ... | ${tg_to_dut_if1_ip6} | ${tg_to_dut_if2_ip6} | ${dut_to_tg_if1_mac}
115 | | ... | ${hops} | ${dut_to_tg_if2_mac}
116
117 | tc04-eth2p-ethicmpv6-ip6base-device_echo-req-to-tg-interface-for-remote-host-ipv4-address
118 | | [Documentation]
119 | | ... | Make TG send ICMPv6 Echo Req between its interfaces across DUT1 for \
120 | | ... | remote host IPv6 addresses. Make TG verify ICMPv6 Echo Replies are \
121 | | ... | correct.
122 | | ...
123 | | ${hops}= | Set Variable | ${1}
124 | | ...
125 | | Given Add PCI devices to all DUTs
126 | | And Apply startup configuration on all VPP DUTs
127 | | And VPP Enable Traces On All Duts | ${nodes}
128 | | When Configure path in 2-node circular topology
129 | | ... | ${nodes['TG']} | ${nodes['DUT1']} | ${nodes['TG']}
130 | | And Configure IPv6 forwarding in circular topology | ${tg_to_dut_if1_ip6}
131 | | ... | ${tg_to_dut_if2_ip6} | ${dut_to_tg_if1_ip6} | ${dut_to_tg_if2_ip6}
132 | | ... | remote_host1_ip6=${remote_host1_ip6}
133 | | ... | remote_host2_ip6=${remote_host2_ip6}
134 | | ... | remote_host_ip6_prefix=${remote_host_ip6_prefix}
135 | | And Suppress ICMPv6 router advertisement message | ${nodes}
136 | | And All Vpp Interfaces Ready Wait | ${nodes}
137 | | Then Send IPv6 echo request packet and verify headers | ${tg_node}
138 | | ... | ${tg_to_dut_if1} | ${tg_node} | ${tg_to_dut_if2}
139 | | ... | ${remote_host1_ip6} | ${remote_host2_ip6} | ${dut_to_tg_if1_mac}
140 | | ... | ${hops} | ${dut_to_tg_if2_mac}