73d486ed8fdf6e654f742f6394772fece6fdb6fa
[csit.git] / resources / libraries / robot / ip / ip6.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 | Library | resources.libraries.python.InterfaceUtil
16 | Library | resources.libraries.python.IPv6Util
17 | Library | resources.libraries.python.IPv6Setup
18 | Library | resources.libraries.python.NodePath
19 | Library | resources.libraries.python.Routing
20 | Library | resources.libraries.python.topology.Topology
21 | Library | resources.libraries.python.TrafficScriptExecutor
22 | Resource | resources/libraries/robot/shared/counters.robot
23 | Resource | resources/libraries/robot/shared/default.robot
24 | Resource | resources/libraries/robot/shared/testing_path.robot
25 | ...
26 | Documentation | IPv6 keywords
27
28 *** Keywords ***
29 | Send IPv6 icmp echo request to DUT1 ingress inteface and verify answer
30 | | [Documentation] | Type of the src_node must be TG and dst_node must be DUT
31 | | [Arguments] | ${tg_node} | ${dut_node} | ${nodes_addr}
32 | | Append Nodes | ${tg_node} | ${dut_node}
33 | | Compute Path
34 | | ${src_port} | ${src_node}= | First Interface
35 | | ${dst_port} | ${dst_node}= | Last Interface
36 | | ${src_ip}= | Get Node Port Ipv6 Address | ${src_node} | ${src_port}
37 | | ... | ${nodes_addr}
38 | | ${dst_ip}= | Get Node Port Ipv6 Address | ${dst_node} | ${dst_port}
39 | | ... | ${nodes_addr}
40 | | ${src_mac}= | Get Interface Mac | ${src_node} | ${src_port}
41 | | ${dst_mac}= | Get Interface Mac | ${dst_node} | ${dst_port}
42 | | ${src_port_name}= | Get interface name | ${src_node} | ${src_port}
43 | | ${args}= | Traffic Script Gen Arg | ${src_port_name} | ${src_port_name}
44 | | ... | ${src_mac} | ${dst_mac} | ${src_ip} | ${dst_ip}
45 | | Run Traffic Script On Node | icmpv6_echo.py | ${tg_node} | ${args}
46
47 | Execute IPv6 ICMP echo sweep
48 | | [Documentation] | Type of the src_node must be TG and dst_node must be DUT
49 | | [Arguments] | ${src_node} | ${dst_node} | ${start_size} | ${end_size}
50 | | ... | ${step} | ${nodes_addr}
51 | | Append Nodes | ${src_node} | ${dst_node}
52 | | Compute Path
53 | | ${src_port} | ${src_node}= | First Interface
54 | | ${dst_port} | ${dst_node}= | Last Interface
55 | | ${src_ip}= | Get Node Port Ipv6 Address | ${src_node} | ${src_port}
56 | | ... | ${nodes_addr}
57 | | ${dst_ip}= | Get Node Port Ipv6 Address | ${dst_node} | ${dst_port}
58 | | ... | ${nodes_addr}
59 | | ${src_mac}= | Get Interface Mac | ${src_node} | ${src_port}
60 | | ${dst_mac}= | Get Interface Mac | ${dst_node} | ${dst_port}
61 | | ${src_port_name}= | Get interface name | ${src_node} | ${src_port}
62 | | ${args}= | Traffic Script Gen Arg | ${src_port_name} | ${src_port_name}
63 | | ... | ${src_mac} | ${dst_mac} | ${src_ip} | ${dst_ip}
64 | | ${args}= | Catenate | ${args} | --start_size ${start_size}
65 | | ... | --end_size ${end_size} | --step ${step}
66 | | Run Traffic Script On Node | ipv6_sweep_ping.py | ${src_node} | ${args}
67 | | ... | timeout=${180}
68
69 | Send IPv6 ICMP echo request to DUT1 egress interface and verify answer
70 | | [Documentation] | Send traffic from TG to first DUT egress interface
71 | | [Arguments] | ${tg_node} | ${first_dut} | ${second_dut} | ${nodes_addr}
72 | | Append Nodes | ${tg_node} | ${first_dut} | ${second_dut}
73 | | Compute Path
74 | | ${src_port} | ${src_node}= | First Interface
75 | | ${dst_port} | ${dst_node}= | Last Egress Interface
76 | | ${hop_port} | ${hop_node}= | First Ingress Interface
77 | | ${src_ip}= | Get Node Port Ipv6 Address | ${src_node} | ${src_port}
78 | | ... | ${nodes_addr}
79 | | ${dst_ip}= | Get Node Port Ipv6 Address | ${dst_node} | ${dst_port}
80 | | ... | ${nodes_addr}
81 | | ${src_mac}= | Get Interface Mac | ${src_node} | ${src_port}
82 | | ${dst_mac}= | Get Interface Mac | ${hop_node} | ${hop_port}
83 | | ${src_port_name}= | Get interface name | ${src_node} | ${src_port}
84 | | ${args}= | Traffic Script Gen Arg | ${src_port_name} | ${src_port_name}
85 | | ... | ${src_mac} | ${dst_mac} | ${src_ip} | ${dst_ip}
86 | | Run Traffic Script On Node | icmpv6_echo.py | ${tg_node} | ${args}
87
88
89 | Send IPv6 ICMP echo request to DUT2 via DUT1 and verify answer
90 | | [Documentation] | Send traffic from TG to second DUT through first DUT
91 | | [Arguments] | ${tg_node} | ${first_dut} | ${second_dut} | ${nodes_addr}
92 | | Append Nodes | ${tg_node} | ${first_dut} | ${second_dut}
93 | | Compute Path
94 | | ${src_port} | ${src_node}= | First Interface
95 | | ${dst_port} | ${dst_node}= | Last Interface
96 | | ${hop_port} | ${hop_node}= | First Ingress Interface
97 | | ${src_ip}= | Get Node Port Ipv6 Address | ${src_node} | ${src_port}
98 | | ... | ${nodes_addr}
99 | | ${dst_ip}= | Get Node Port Ipv6 Address | ${dst_node} | ${dst_port}
100 | | ... | ${nodes_addr}
101 | | ${src_mac}= | Get Interface Mac | ${src_node} | ${src_port}
102 | | ${dst_mac}= | Get Interface Mac | ${hop_node} | ${hop_port}
103 | | ${src_port_name}= | Get interface name | ${src_node} | ${src_port}
104 | | ${args}= | Traffic Script Gen Arg | ${src_port_name} | ${src_port_name}
105 | | ... | ${src_mac} | ${dst_mac} | ${src_ip} | ${dst_ip}
106 | | Run Traffic Script On Node | icmpv6_echo.py | ${tg_node} | ${args}
107
108 | Send IPv6 ICMP echo request to DUT2 egress interface via DUT1 and verify answer
109 | | [Documentation] | Send traffic from TG to second DUT egress interface
110 | | ... | through first DUT
111 | | [Arguments] | ${tg_node} | ${first_dut} | ${second_dut} | ${nodes_addr}
112 | | Append Nodes | ${tg_node} | ${first_dut} | ${second_dut} | ${tg_node}
113 | | Compute Path
114 | | ${src_port} | ${src_node}= | First Interface
115 | | ${dst_port} | ${dst_node}= | Last Egress Interface
116 | | ${hop_port} | ${hop_node}= | First Ingress Interface
117 | | ${src_ip}= | Get Node Port Ipv6 Address | ${src_node} | ${src_port}
118 | | ... | ${nodes_addr}
119 | | ${dst_ip}= | Get Node Port Ipv6 Address | ${dst_node} | ${dst_port}
120 | | ... | ${nodes_addr}
121 | | ${src_mac}= | Get Interface Mac | ${src_node} | ${src_port}
122 | | ${dst_mac}= | Get Interface Mac | ${hop_node} | ${hop_port}
123 | | ${src_port_name}= | Get interface name | ${src_node} | ${src_port}
124 | | ${args}= | Traffic Script Gen Arg | ${src_port_name} | ${src_port_name}
125 | | ... | ${src_mac} | ${dst_mac} | ${src_ip} | ${dst_ip}
126 | | Run Traffic Script On Node | icmpv6_echo.py | ${tg_node} | ${args}
127
128 | Ipv6 tg to tg routed
129 | | [Documentation] | Send traffic from one TG port to another through DUT nodes
130 | | ... | and send reply back, also verify hop limit processing
131 | | [Arguments] | ${tg_node} | ${first_dut} | ${second_dut} | ${nodes_addr}
132 | | Append Nodes | ${tg_node} | ${first_dut} | ${second_dut} | ${tg_node}
133 | | Compute Path
134 | | ${src_port} | ${src_node}= | First Interface
135 | | ${dst_port} | ${dst_node}= | Last Interface
136 | | ${src_nh_port} | ${src_nh_node}= | First Ingress Interface
137 | | ${dst_nh_port} | ${dst_nh_node}= | Last Egress Interface
138 | | ${src_ip}= | Get Node Port Ipv6 Address | ${src_node} | ${src_port}
139 | | ... | ${nodes_addr}
140 | | ${dst_ip}= | Get Node Port Ipv6 Address | ${dst_node} | ${dst_port}
141 | | ... | ${nodes_addr}
142 | | ${src_mac}= | Get Interface Mac | ${src_node} | ${src_port}
143 | | ${dst_mac}= | Get Interface Mac | ${src_node} | ${dst_port}
144 | | ${src_nh_mac}= | Get Interface Mac | ${src_nh_node} | ${src_nh_port}
145 | | ${dst_nh_mac}= | Get Interface Mac | ${dst_nh_node} | ${dst_nh_port}
146 | | ${src_port_name}= | Get interface name | ${src_node} | ${src_port}
147 | | ${dst_port_name}= | Get interface name | ${dst_node} | ${dst_port}
148 | | ${args}= | Traffic Script Gen Arg | ${dst_port_name} | ${src_port_name}
149 | | ... | ${src_mac} | ${dst_mac} | ${src_ip} | ${dst_ip}
150 | | ${args}= | Catenate | ${args} | --src_nh_mac ${src_nh_mac}
151 | | ... | --dst_nh_mac ${dst_nh_mac} | --h_num 2
152 | | Run Traffic Script On Node | icmpv6_echo_req_resp.py | ${tg_node} | ${args}
153
154 | Send IPv6 neighbor solicitation and verify answer
155 | | [Documentation] | Send IPv6 neighbor solicitation from TG to DUT
156 | | [Arguments] | ${tg_node} | ${dut_node} | ${nodes_addr}
157 | | Append Nodes | ${tg_node} | ${dut_node}
158 | | Compute Path
159 | | ${src_port} | ${src_node}= | First Interface
160 | | ${dst_port} | ${dst_node}= | Last Interface
161 | | ${src_ip}= | Get Node Port Ipv6 Address | ${src_node} | ${src_port}
162 | | ... | ${nodes_addr}
163 | | ${dst_ip}= | Get Node Port Ipv6 Address | ${dst_node} | ${dst_port}
164 | | ... | ${nodes_addr}
165 | | ${src_mac}= | Get Interface Mac | ${src_node} | ${src_port}
166 | | ${dst_mac}= | Get Interface Mac | ${dst_node} | ${dst_port}
167 | | ${src_port_name}= | Get interface name | ${src_node} | ${src_port}
168 | | ${args}= | Traffic Script Gen Arg | ${src_port_name} | ${src_port_name}
169 | | ... | ${src_mac} | ${dst_mac} | ${src_ip} | ${dst_ip}
170 | | Run Traffic Script On Node | ipv6_ns.py | ${src_node} | ${args}
171
172 | Configure IPv6 on all DUTs in topology
173 | | [Documentation] | Setup IPv6 address on all DUTs
174 | | [Arguments] | ${nodes} | ${nodes_addr}
175 | | Configure all DUTs before test
176 | | ${interfaces}= | Nodes Set Ipv6 Addresses | ${nodes} | ${nodes_addr}
177 | | :FOR | ${interface} | IN | @{interfaces}
178 | | | Set Interface State | @{interface} | up | if_type=name
179 | | All Vpp Interfaces Ready Wait | ${nodes}
180
181 | Suppress ICMPv6 router advertisement message
182 | | [Documentation] | Suppress ICMPv6 router advertisement message for link
183 | | ... | scope address
184 | | [Arguments] | ${nodes}
185 | | Vpp All Ra Suppress Link Layer | ${nodes}
186
187 | Configure IPv6 routing on all DUTs
188 | | [Documentation] | Setup routing on all VPP nodes required for IPv6 tests
189 | | [Arguments] | ${nodes} | ${nodes_addr}
190 | | Append Nodes | ${nodes['DUT1']} | ${nodes['DUT2']}
191 | | Compute Path
192 | | ${tg}= | Set Variable | ${nodes['TG']}
193 | | ${dut1_if} | ${dut1}= | First Interface
194 | | ${dut2_if} | ${dut2}= | Last Interface
195 | | ${dut1_if_addr}= | Get Node Port Ipv6 Address | ${dut1} | ${dut1_if}
196 | | ... | ${nodes_addr}
197 | | ${dut2_if_addr}= | Get Node Port Ipv6 Address | ${dut2} | ${dut2_if}
198 | | ... | ${nodes_addr}
199 | | @{tg_dut1_links}= | Get active links connecting "${tg}" and "${dut1}"
200 | | @{tg_dut2_links}= | Get active links connecting "${tg}" and "${dut2}"
201 | | :FOR | ${link} | IN | @{tg_dut1_links}
202 | | | ${net}= | Get Link Address | ${link} | ${nodes_addr}
203 | | | ${prefix}= | Get Link Prefix | ${link} | ${nodes_addr}
204 | | | Vpp Route Add | ${dut2} | ${net} | ${prefix} | gateway=${dut1_if_addr}
205 | | | ... | interface=${dut2_if}
206 | | :FOR | ${link} | IN | @{tg_dut2_links}
207 | | | ${net}= | Get Link Address | ${link} | ${nodes_addr}
208 | | | ${prefix}= | Get Link Prefix | ${link} | ${nodes_addr}
209 | | | Vpp Route Add | ${dut1} | ${net} | ${prefix} | gateway=${dut2_if_addr}
210 | | | ... | interface=${dut1_if}
211
212 | Configure IPv6 forwarding in circular topology
213 | | [Documentation]
214 | | ... | Set UP state on VPP interfaces in path on nodes in 2-node / 3-node
215 | | ... | circular topology. Get the interface MAC addresses and setup ARP on
216 | | ... | all VPP interfaces. Setup IPv6 addresses with /64 prefix on DUT-TG
217 | | ... | links. In case of 3-node topology setup IPv6 adresses with /96 prefix
218 | | ... | on DUT1-DUT2 link and set routing on both DUT nodes with prefix /64
219 | | ... | and next hop of neighbour DUT interface IPv6 address. Configure route
220 | | ... | entries for remote hosts IPv6 addresses if required.
221 | | ...
222 | | ... | *Arguments:*
223 | | ... | - tg_if1_ip6 - IPv6 address of TG interface1. Type: string
224 | | ... | - tg_if2_ip6 - IPv6 address of TG interface2. Type: string
225 | | ... | - dut1_if1_ip6 - IPv6 address of DUT1 interface1. Type: string
226 | | ... | - dut1_if2_ip6 - IPv6 address of DUT1 interface1. Type: string
227 | | ... | - dut2_if1_ip6 - IPv6 address of DUT2 interface1 (Optional).
228 | | ... | Type: string
229 | | ... | - dut2_if2_ip6 - IPv6 address of DUT2 interface2 (Optional).
230 | | ... | Type: string
231 | | ... | - remote_host1_ip6 - IPv6 address of remote host1 (Optional).
232 | | ... | Type: string
233 | | ... | - remote_host2_ip6 - IPv6 address of remote host2 (Optional).
234 | | ... | Type: string
235 | | ... | - remote_host_ip6_prefix - IPv6 address prefix for host IPv6 addresses
236 | | ... | (Optional). Type: string or integer
237 | | ...
238 | | ... | *Example:*
239 | | ...
240 | | ... | \| Configure IPv6 forwarding in circular topology \
241 | | ... | \| 2001:1::2 \| 2001:2::2 \| 2001:1::1 \| 2001:2::1 \|
242 | | ... | \| Configure IPv6 forwarding in circular topology \
243 | | ... | \| 2001:1::2 \| 2001:2::2 \| 2001:1::1 \| 2001:2::1 \
244 | | ... | \| remote_host1_ip6=3ffe:5f::1 \| remote_host2_ip6=3ffe:5f::2 \
245 | | ... | \| remote_host_ip6_prefix=128 \|
246 | | ... | \| Configure IPv6 forwarding in circular topology \
247 | | ... | \| 2001:1::2 \| 2001:2::2 \| 2001:1::1 \| 2003:3::1 \| 2003:3::2 \
248 | | ... | \| 2001:2::1 \|
249 | | ... | \| Configure IPv6 forwarding in circular topology \
250 | | ... | \| 2001:1::2 \| 2001:2::2 \| 2001:1::1 \| 2003:3::1 \| 2003:3::2 \
251 | | ... | \| 2001:2::1 \| remote_host1_ip4=3ffe:5f::1 \
252 | | ... | \| remote_host2_ip4=3ffe:5f::2 \| remote_host_ip4_prefix=128 \|
253 | | ...
254 | | [Arguments] | ${tg_if1_ip6} | ${tg_if2_ip6} | ${dut1_if1_ip6}
255 | | ... | ${dut1_if2_ip6} | ${dut2_if1_ip6}=${NONE} | ${dut2_if2_ip6}=${NONE}
256 | | ... | ${remote_host1_ip6}=${NONE} | ${remote_host2_ip6}=${NONE}
257 | | ... | ${remote_host_ip6_prefix}=${NONE}
258 | | ...
259 | | ...
260 | | Configure interfaces in path up
261 | | ...
262 | | ${dut2_status} | ${value}= | Run Keyword And Ignore Error
263 | | ... | Variable Should Exist | ${dut2_node}
264 | | ...
265 | | Run Keyword If | '${dut2_status}' == 'PASS'
266 | | ... | Configure IPv6 forwarding in 3-node circular topology
267 | | ... | ${tg_if1_ip6} | ${tg_if2_ip6} | ${dut1_if1_ip6} | ${dut1_if2_ip6}
268 | | ... | ${dut2_if1_ip6} | ${dut2_if2_ip6} | ${remote_host1_ip6}
269 | | ... | ${remote_host2_ip6} | ${remote_host_ip6_prefix}
270 | | ... | ELSE
271 | | ... | Configure IPv6 forwarding in 2-node circular topology
272 | | ... | ${tg_if1_ip6} | ${tg_if2_ip6} | ${dut1_if1_ip6} | ${dut1_if2_ip6}
273 | | ... | remote_host1_ip6=${remote_host1_ip6}
274 | | ... | remote_host2_ip6=${remote_host2_ip6}
275 | | ... | remote_host_ip6_prefix=${remote_host_ip6_prefix}
276
277 | Configure IPv6 forwarding in 2-node circular topology
278 | | [Documentation]
279 | | ... | Set UP state on VPP interfaces on DUT node in 2-node circular
280 | | ... | topology. Get the interface MAC addresses and setup ARP on
281 | | ... | all VPP interfaces. Setup IPv6 addresses with /64 prefix on DUT-TG
282 | | ... | links. Configure route entries for remote hosts IPv6 addresses
283 | | ... | if required.
284 | | ...
285 | | ... | *Arguments:*
286 | | ... | - tg_if1_ip6 - IPv6 address of TG interface1. Type: string
287 | | ... | - tg_if2_ip6 - IPv6 address of TG interface2. Type: string
288 | | ... | - dut1_if1_ip6 - IPv6 address of DUT1 interface1. Type: string
289 | | ... | - dut1_if2_ip6 - IPv6 address of DUT1 interface1. Type: string
290 | | ... | - remote_host1_ip6 - IPv6 address of remote host1 (Optional).
291 | | ... | Type: string
292 | | ... | - remote_host2_ip6 - IPv6 address of remote host2 (Optional).
293 | | ... | Type: string
294 | | ... | - remote_host_ip6_prefix - IPv6 address prefix for host IPv6 addresses
295 | | ... | (Optional). Type: string or integer
296 | | ...
297 | | ... | *Example:*
298 | | ...
299 | | ... | \| Configure IPv6 forwarding in circular topology \
300 | | ... | \| 2001:1::2 \| 2001:2::2 \| 2001:1::1 \| 2001:2::1 \|
301 | | ... | \| Configure IPv6 forwarding in circular topology \
302 | | ... | \| 2001:1::2 \| 2001:2::2 \| 2001:1::1 \| 2001:2::1 \
303 | | ... | \| remote_host1_ip6=3ffe:5f::1 \| remote_host2_ip6=3ffe:5f::2 \
304 | | ... | \| remote_host_ip6_prefix=128 \|
305 | | ...
306 | | [Arguments] | ${tg_if1_ip6} | ${tg_if2_ip6} | ${dut1_if1_ip6}
307 | | ... | ${dut1_if2_ip6} | ${remote_host1_ip6}=${NONE}
308 | | ... | ${remote_host2_ip6}=${NONE} | ${remote_host_ip6_prefix}=${NONE}
309 | | ...
310 | | ${dut_tg_ip6_prefix}= | Set Variable | 64
311 | | ...
312 | | Add IP neighbor | ${dut_node} | ${dut_to_tg_if1} | ${tg_if1_ip6}
313 | | ... | ${tg_to_dut_if1_mac}
314 | | Add IP neighbor | ${dut_node} | ${dut_to_tg_if2} | ${tg_if2_ip6}
315 | | ... | ${tg_to_dut_if2_mac}
316 | | ...
317 | | VPP set If IPv6 addr | ${dut_node} | ${dut_to_tg_if1} | ${dut1_if1_ip6}
318 | | ... | ${dut_tg_ip6_prefix}
319 | | VPP set If IPv6 addr | ${dut_node} | ${dut_to_tg_if2} | ${dut1_if2_ip6}
320 | | ... | ${dut_tg_ip6_prefix}
321 | | ...
322 | | Run Keyword Unless | '${remote_host1_ip6}' == '${NONE}'
323 | | ... | Vpp Route Add | ${dut_node} | ${remote_host1_ip6}
324 | | ... | ${remote_host_ip6_prefix} | gateway=${tg_if1_ip6}
325 | | ... | interface=${dut_to_tg_if1}
326 | | Run Keyword Unless | '${remote_host2_ip6}' == '${NONE}'
327 | | ... | Vpp Route Add | ${dut_node} | ${remote_host2_ip6}
328 | | ... | ${remote_host_ip6_prefix} | gateway=${tg_if2_ip6}
329 | | ... | interface=${dut_to_tg_if2}
330
331 | Configure IPv6 forwarding in 3-node circular topology
332 | | [Documentation]
333 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
334 | | ... | topology. Get the interface MAC addresses and setup ARP on all VPP
335 | | ... | interfaces. Setup IPv6 addresses with /64 prefix on DUT-TG links.
336 | | ... | Configure IPv6 adresses with /96 prefix on DUT1-DUT2 link and set
337 | | ... | routing on both DUT nodes with prefix /64 and next hop of neighbour
338 | | ... | DUT interface IPv6 address. Configure route entries for remote hosts
339 | | ... | IPv6 addresses if required.
340 | | ...
341 | | ... | *Arguments:*
342 | | ... | - tg_if1_ip6 - IPv6 address of TG interface1. Type: string
343 | | ... | - tg_if2_ip6 - IPv6 address of TG interface2. Type: string
344 | | ... | - dut1_if1_ip6 - IPv6 address of DUT1 interface1. Type: string
345 | | ... | - dut1_if2_ip6 - IPv6 address of DUT1 interface1. Type: string
346 | | ... | - dut2_if1_ip6 - IPv6 address of DUT2 interface1 Type: string
347 | | ... | - dut2_if2_ip6 - IPv6 address of DUT2 interface2 Type: string
348 | | ... | - remote_host1_ip6 - IPv6 address of remote host1 (Optional).
349 | | ... | Type: string
350 | | ... | - remote_host2_ip6 - IPv6 address of remote host2 (Optional).
351 | | ... | Type: string
352 | | ... | - remote_host_ip6_prefix - IPv6 address prefix for host IPv6 addresses
353 | | ... | (Optional). Type: string or integer
354 | | ...
355 | | ... | *Example:*
356 | | ...
357 | | ... | \| Configure IPv6 forwarding in circular topology \
358 | | ... | \| 2001:1::2 \| 2001:2::2 \| 2001:1::1 \| 2003:3::1 \| 2003:3::2 \
359 | | ... | \| 2001:2::1 \|
360 | | ... | \| Configure IPv6 forwarding in circular topology \
361 | | ... | \| 2001:1::2 \| 2001:2::2 \| 2001:1::1 \| 2003:3::1 \| 2003:3::2 \
362 | | ... | \| 2001:2::1 \| remote_host1_ip4=3ffe:5f::1 \
363 | | ... | \| remote_host2_ip4=3ffe:5f::2 \| remote_host_ip4_prefix=128 \|
364 | | ...
365 | | [Arguments] | ${tg_if1_ip6} | ${tg_if2_ip6} | ${dut1_if1_ip6}
366 | | ... | ${dut1_if2_ip6} | ${dut2_if1_ip6} | ${dut2_if2_ip6}
367 | | ... | ${remote_host1_ip6}=${NONE} | ${remote_host2_ip6}=${NONE}
368 | | ... | ${remote_host_ip6_prefix}=${NONE}
369 | | ...
370 | | ${dut_tg_ip6_prefix}= | Set Variable | 64
371 | | ${dut_link_ip6_prefix}= | Set Variable | 96
372 | | ...
373 | | Add IP neighbor | ${dut1_node} | ${dut1_to_tg} | ${tg_if1_ip6}
374 | | ... | ${tg_to_dut1_mac}
375 | | Add IP neighbor | ${dut1_node} | ${dut1_to_dut2} | ${dut2_if1_ip6}
376 | | ... | ${dut2_to_dut1_mac}
377 | | Add IP neighbor | ${dut2_node} | ${dut2_to_dut1} | ${dut1_if2_ip6}
378 | | ... | ${dut1_to_dut2_mac}
379 | | Add IP neighbor | ${dut2_node} | ${dut2_to_tg} | ${tg_if2_ip6}
380 | | ... | ${tg_to_dut2_mac}
381 | | ...
382 | | VPP set If IPv6 addr | ${dut1_node} | ${dut1_to_tg} | ${dut1_if1_ip6}
383 | | ... | ${dut_tg_ip6_prefix}
384 | | VPP set If IPv6 addr | ${dut1_node} | ${dut1_to_dut2} | ${dut1_if2_ip6}
385 | | ... | ${dut_link_ip6_prefix}
386 | | VPP set If IPv6 addr | ${dut2_node} | ${dut2_to_dut1} | ${dut2_if1_ip6}
387 | | ... | ${dut_link_ip6_prefix}
388 | | VPP set If IPv6 addr | ${dut2_node} | ${dut2_to_tg} | ${dut2_if2_ip6}
389 | | ... | ${dut_tg_ip6_prefix}
390 | | ...
391 | | Vpp Route Add | ${dut1_node} | ${tg_if2_ip6} | ${dut_tg_ip6_prefix}
392 | | ... | gateway=${dut2_if1_ip6} | interface=${dut1_to_dut2}
393 | | Vpp Route Add | ${dut2_node} | ${tg_if1_ip6} | ${dut_tg_ip6_prefix}
394 | | ... | gateway=${dut1_if2_ip6} | interface=${dut2_to_dut1}
395 | | ...
396 | | Run Keyword Unless | '${remote_host1_ip6}' == '${NONE}'
397 | | ... | Vpp Route Add | ${dut1_node} | ${remote_host1_ip6}
398 | | ... | ${remote_host_ip6_prefix} | gateway=${tg_if1_ip6}
399 | | ... | interface=${dut1_to_tg}
400 | | Run Keyword Unless | '${remote_host2_ip6}' == '${NONE}'
401 | | ... | Vpp Route Add | ${dut1_node} | ${remote_host2_ip6}
402 | | ... | ${remote_host_ip6_prefix} | gateway=${dut2_if1_ip6}
403 | | ... | interface=${dut1_to_dut2}
404 | | Run Keyword Unless | '${remote_host1_ip6}' == '${NONE}'
405 | | ... | Vpp Route Add | ${dut2_node} | ${remote_host1_ip6}
406 | | ... | ${remote_host_ip6_prefix} | gateway=${dut1_if2_ip6}
407 | | ... | interface=${dut2_to_dut1}
408 | | Run Keyword Unless | '${remote_host2_ip6}' == '${NONE}'
409 | | ... | Vpp Route Add | ${dut2_node} | ${remote_host2_ip6}
410 | | ... | ${remote_host_ip6_prefix} | gateway=${tg_if2_ip6}
411 | | ... | interface=${dut2_to_tg}