045a5d36ef5a69700591b8afb3debba1c0117233
[csit.git] / resources / libraries / robot / performance / performance_configuration.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 | Library | Collections
16 | Library | String
17 | Library | resources.libraries.python.topology.Topology
18 | Library | resources.libraries.python.NodePath
19 | Library | resources.libraries.python.DpdkUtil
20 | Library | resources.libraries.python.InterfaceUtil
21 | Library | resources.libraries.python.VhostUser
22 | Library | resources.libraries.python.TrafficGenerator
23 | Library | resources.libraries.python.TrafficGenerator.TGDropRateSearchImpl
24 | Library | resources.libraries.python.Classify
25 | Library | resources.libraries.python.IPUtil
26 | Library | resources.libraries.python.L2Util
27 | Resource | resources/libraries/robot/shared/default.robot
28 | Resource | resources/libraries/robot/shared/interfaces.robot
29 | Resource | resources/libraries/robot/shared/counters.robot
30 | Resource | resources/libraries/robot/l2/l2_bridge_domain.robot
31 | Resource | resources/libraries/robot/l2/l2_xconnect.robot
32 | Resource | resources/libraries/robot/ip/ip4.robot
33 | Resource | resources/libraries/robot/ip/ip6.robot
34 | Resource | resources/libraries/robot/vm/qemu.robot
35 | Resource | resources/libraries/robot/l2/tagging.robot
36 | Resource | resources/libraries/robot/overlay/srv6.robot
37 | Documentation | Performance suite keywords - configuration.
38
39 *** Keywords ***
40 | Set interfaces in path in 2-node circular topology up
41 | | [Documentation]
42 | | ... | *Set UP state on VPP interfaces in path on nodes in 2-node circular
43 | | ... | topology.*
44 | | ...
45 | | Set Interface State | ${dut1} | ${dut1_if1} | up
46 | | Set Interface State | ${dut1} | ${dut1_if2} | up
47 | | Vpp Node Interfaces Ready Wait | ${dut1}
48
49 | Set interfaces in path in 3-node circular topology up
50 | | [Documentation]
51 | | ... | *Set UP state on VPP interfaces in path on nodes in 3-node circular
52 | | ... | topology.*
53 | | ...
54 | | Set Interface State | ${dut1} | ${dut1_if1} | up
55 | | Set Interface State | ${dut1} | ${dut1_if2} | up
56 | | Set Interface State | ${dut2} | ${dut2_if1} | up
57 | | Set Interface State | ${dut2} | ${dut2_if2} | up
58 | | Vpp Node Interfaces Ready Wait | ${dut1}
59 | | Vpp Node Interfaces Ready Wait | ${dut2}
60
61 | Initialize IPSec in 3-node circular topology
62 | | [Documentation]
63 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
64 | | ... | topology. Get the interface MAC addresses and setup ARP on all VPP
65 | | ... | interfaces. Setup IPv4 addresses with /24 prefix on DUT-TG and
66 | | ... | DUT1-DUT2 links. Set routing for encrypted traffic on both DUT nodes
67 | | ... | with prefix /8 and next hop of neighbour DUT or TG interface IPv4
68 | | ... | address.
69 | | ...
70 | | VPP Show Crypto Device Mapping | ${dut1}
71 | | VPP Show Crypto Device Mapping | ${dut2}
72 | | ${tg_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
73 | | ${tg_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
74 | | ${dut1_if1_mac}= | Get Interface MAC | ${dut1} | ${dut1_if1}
75 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
76 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
77 | | ${dut2_if2_mac}= | Get Interface MAC | ${dut2} | ${dut2_if2}
78 | | Set Test Variable | ${tg_if1_mac}
79 | | Set Test Variable | ${tg_if2_mac}
80 | | Set Test Variable | ${dut1_if1_mac}
81 | | Set Test Variable | ${dut1_if2_mac}
82 | | Set Test Variable | ${dut2_if1_mac}
83 | | Set Test Variable | ${dut2_if2_mac}
84 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1}
85 | | ... | ${dut1_if1_ip4} | 24
86 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2}
87 | | ... | ${dut1_if2_ip4} | 24
88 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1}
89 | | ... | ${dut2_if1_ip4} | 24
90 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if2}
91 | | ... | ${dut2_if2_ip4} | 24
92 | | Add arp on dut | ${dut1} | ${dut1_if1} | ${tg_if1_ip4} | ${tg_if1_mac}
93 | | Add arp on dut | ${dut1} | ${dut1_if2} | ${dut2_if1_ip4} | ${dut2_if1_mac}
94 | | Add arp on dut | ${dut2} | ${dut2_if2} | ${tg_if2_ip4} | ${tg_if2_mac}
95 | | Add arp on dut | ${dut2} | ${dut2_if1} | ${dut1_if2_ip4} | ${dut1_if2_mac}
96 | | Vpp Route Add | ${dut1} | ${laddr_ip4} | 8 | ${tg_if1_ip4} | ${dut1_if1}
97 | | Vpp Route Add | ${dut2} | ${raddr_ip4} | 8 | ${tg_if2_ip4} | ${dut2_if2}
98
99 | Initialize IPv4 forwarding in 2-node circular topology
100 | | [Documentation]
101 | | ... | Set UP state on VPP interfaces in path on nodes in 2-node circular
102 | | ... | topology. Get the interface MAC addresses and setup ARP on all VPP
103 | | ... | interfaces. Setup IPv4 addresses with /24 prefix on DUT-TG links and
104 | | ... | /30 prefix on DUT1 link. Set routing on DUT node with prefix /24 and
105 | | ... | next hop of neighbour DUT interface IPv4 address.
106 | | ...
107 | | Set Interface State | ${dut1} | ${dut1_if1} | up
108 | | Set Interface State | ${dut1} | ${dut1_if2} | up
109 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
110 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
111 | | Add arp on dut | ${dut1} | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
112 | | Add arp on dut | ${dut1} | ${dut1_if2} | 20.20.20.2 | ${tg1_if2_mac}
113 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1}
114 | | ... | 10.10.10.1 | 24
115 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2}
116 | | ... | 20.20.20.1 | 24
117 | | All Vpp Interfaces Ready Wait | ${nodes}
118
119 | Initialize IPv4 forwarding in 3-node circular topology
120 | | [Documentation]
121 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
122 | | ... | topology. Get the interface MAC addresses and setup ARP on all VPP
123 | | ... | interfaces. Setup IPv4 addresses with /24 prefix on DUT-TG links and
124 | | ... | /30 prefix on DUT1-DUT2 link. Set routing on both DUT nodes with
125 | | ... | prefix /24 and next hop of neighbour DUT interface IPv4 address.
126 | | ...
127 | | Set Interface State | ${dut1} | ${dut1_if1} | up
128 | | Set Interface State | ${dut1} | ${dut1_if2} | up
129 | | Set Interface State | ${dut2} | ${dut2_if1} | up
130 | | Set Interface State | ${dut2} | ${dut2_if2} | up
131 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
132 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
133 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
134 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
135 | | Add arp on dut | ${dut1} | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
136 | | Add arp on dut | ${dut1} | ${dut1_if2} | 1.1.1.2 | ${dut2_if1_mac}
137 | | Add arp on dut | ${dut2} | ${dut2_if1} | 1.1.1.1 | ${dut1_if2_mac}
138 | | Add arp on dut | ${dut2} | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
139 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1}
140 | | ... | 10.10.10.1 | 24
141 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2}
142 | | ... | 1.1.1.1 | 30
143 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1}
144 | | ... | 1.1.1.2 | 30
145 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if2}
146 | | ... | 20.20.20.1 | 24
147 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 1.1.1.2 | ${dut1_if2}
148 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 1.1.1.1 | ${dut2_if1}
149 | | All Vpp Interfaces Ready Wait | ${nodes}
150
151 | Initialize IPv4 forwarding with scaling in 3-node circular topology
152 | | [Documentation]
153 | | ... | Custom setup of IPv4 topology with scalability of ip routes on all
154 | | ... | DUT nodes in 3-node circular topology
155 | | ...
156 | | ... | *Arguments:*
157 | | ... | - ${count} - IP route count. Type: integer
158 | | ...
159 | | ... | *Return:*
160 | | ... | - No value returned
161 | | ...
162 | | ... | *Example:*
163 | | ...
164 | | ... | \| Initialize IPv4 forwarding with scaling in 3-node circular \
165 | | ... | topology \| 100000 \|
166 | | ...
167 | | [Arguments] | ${count}
168 | | ...
169 | | Set Interface State | ${dut1} | ${dut1_if1} | up
170 | | Set Interface State | ${dut1} | ${dut1_if2} | up
171 | | Set Interface State | ${dut2} | ${dut2_if1} | up
172 | | Set Interface State | ${dut2} | ${dut2_if2} | up
173 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
174 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
175 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
176 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
177 | | Add arp on dut | ${dut1} | ${dut1_if1} | 1.1.1.1 | ${tg1_if1_mac}
178 | | Add arp on dut | ${dut1} | ${dut1_if2} | 2.2.2.2 | ${dut2_if1_mac}
179 | | Add arp on dut | ${dut2} | ${dut2_if1} | 2.2.2.1 | ${dut1_if2_mac}
180 | | Add arp on dut | ${dut2} | ${dut2_if2} | 3.3.3.1 | ${tg1_if2_mac}
181 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1} | 1.1.1.2 | 30
182 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2} | 2.2.2.1 | 30
183 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1} | 2.2.2.2 | 30
184 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if2} | 3.3.3.2 | 30
185 | | Vpp Route Add | ${dut1} | 10.0.0.0 | 32 | 1.1.1.1 | ${dut1_if1}
186 | | ... | count=${count}
187 | | Vpp Route Add | ${dut1} | 20.0.0.0 | 32 | 2.2.2.2 | ${dut1_if2}
188 | | ... | count=${count}
189 | | Vpp Route Add | ${dut2} | 10.0.0.0 | 32 | 2.2.2.1 | ${dut2_if1}
190 | | ... | count=${count}
191 | | Vpp Route Add | ${dut2} | 20.0.0.0 | 32 | 3.3.3.1 | ${dut2_if2}
192 | | ... | count=${count}
193 | | All Vpp Interfaces Ready Wait | ${nodes}
194
195 | Initialize IPv4 forwarding with vhost in 3-node circular topology
196 | | [Documentation]
197 | | ... | Create vhost-user interfaces in VPP. Set UP state of all VPP
198 | | ... | interfaces in path on nodes in 3-node circular topology. Create 2
199 | | ... | FIB tables on each DUT with multipath routing. Assign pair of
200 | | ... | Physical and Virtual interfaces on both nodes to each FIB table.
201 | | ... | Setup IPv4 addresses with /30 prefix on DUT-TG links and /30 prefix
202 | | ... | on DUT1-DUT2 link. Set routing on all DUT nodes in all FIB tables
203 | | ... | with prefix /24 and next hop of neighbour IPv4 address. Setup
204 | | ... | ARP on all VPP interfaces.
205 | | ...
206 | | ... | *Arguments:*
207 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
208 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
209 | | ...
210 | | ... | _NOTE:_ This KW uses following test case variables:
211 | | ... | - ${dut1} - DUT1 node.
212 | | ... | - ${dut2} - DUT2 node.
213 | | ... | - ${dut1_if1} - DUT1 interface towards TG.
214 | | ... | - ${dut1_if2} - DUT1 interface towards DUT2.
215 | | ... | - ${dut2_if1} - DUT2 interface towards DUT1.
216 | | ... | - ${dut2_if2} - DUT2 interface towards TG.
217 | | ...
218 | | ... | *Return:*
219 | | ... | - No value returned
220 | | ...
221 | | ... | *Example:*
222 | | ...
223 | | ... | \| IPv4 forwarding with vhost initialized in a 3-node circular \
224 | | ... | topology \| /tmp/sock1 \| /tmp/sock2 \|
225 | | ...
226 | | [Arguments] | ${sock1} | ${sock2}
227 | | ...
228 | | Set interfaces in path in 3-node circular topology up
229 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
230 | | ... | ${sock1} | ${sock2} | dut1_vhost_if1 | dut1_vhost_if2
231 | | ${dut1_vif1}= | Set Variable | ${dut1_vhost_if1}
232 | | ${dut1_vif2}= | Set Variable | ${dut1_vhost_if2}
233 | | Set Interface State | ${dut1} | ${dut1_vif1} | up
234 | | Set Interface State | ${dut1} | ${dut1_vif2} | up
235 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
236 | | ... | ${sock1} | ${sock2} | dut2_vhost_if1 | dut2_vhost_if2
237 | | ${dut2_vif1}= | Set Variable | ${dut2_vhost_if1}
238 | | ${dut2_vif2}= | Set Variable | ${dut2_vhost_if2}
239 | | Set Interface State | ${dut2} | ${dut2_vif1} | up
240 | | Set Interface State | ${dut2} | ${dut2_vif2} | up
241 | | Add Fib Table | ${dut1} | ${fib_table_1}
242 | | And Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | vrf=${fib_table_1}
243 | | ... | gateway=4.4.4.2 | interface=${dut1_vif1} | multipath=${TRUE}
244 | | Add Fib Table | ${dut1} | ${fib_table_1}
245 | | And Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | vrf=${fib_table_1}
246 | | ... | gateway=1.1.1.2 | interface=${dut1_if1} | multipath=${TRUE}
247 | | Add Fib Table | ${dut1} | ${fib_table_2}
248 | | And Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | vrf=${fib_table_2}
249 | | ... | gateway=2.2.2.2 | interface=${dut1_if2} | multipath=${TRUE}
250 | | Add Fib Table | ${dut1} | ${fib_table_2}
251 | | And Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | vrf=${fib_table_2}
252 | | ... | gateway=5.5.5.2 | interface=${dut1_vif2} | multipath=${TRUE}
253 | | Add Fib Table | ${dut2} | ${fib_table_1}
254 | | And Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | vrf=${fib_table_1}
255 | | ... | gateway=2.2.2.1 | interface=${dut2_if1} | multipath=${TRUE}
256 | | Add Fib Table | ${dut2} | ${fib_table_1}
257 | | And Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | vrf=${fib_table_1}
258 | | ... | gateway=4.4.4.1 | interface=${dut2_vif1} | multipath=${TRUE}
259 | | Add Fib Table | ${dut2} | ${fib_table_2}
260 | | And Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | vrf=${fib_table_2}
261 | | ... | gateway=5.5.5.2 | interface=${dut2_vif2} | multipath=${TRUE}
262 | | Add Fib Table | ${dut2} | ${fib_table_2}
263 | | And Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | vrf=${fib_table_2}
264 | | ... | gateway=3.3.3.2 | interface=${dut2_if2} | multipath=${TRUE}
265 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if1} | ${fib_table_1}
266 | | Assign Interface To Fib Table | ${dut1} | ${dut1_vif1} | ${fib_table_1}
267 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if2} | ${fib_table_2}
268 | | Assign Interface To Fib Table | ${dut1} | ${dut1_vif2} | ${fib_table_2}
269 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if1} | ${fib_table_1}
270 | | Assign Interface To Fib Table | ${dut2} | ${dut2_vif1} | ${fib_table_1}
271 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if2} | ${fib_table_2}
272 | | Assign Interface To Fib Table | ${dut2} | ${dut2_vif2} | ${fib_table_2}
273 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1} | 1.1.1.2 | 30
274 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2} | 2.2.2.1 | 30
275 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_vif1} | 4.4.4.1 | 30
276 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_vif2} | 5.5.5.1 | 30
277 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1} | 2.2.2.2 | 30
278 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if2} | 3.3.3.1 | 30
279 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_vif1} | 4.4.4.1 | 30
280 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_vif2} | 5.5.5.1 | 30
281 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
282 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
283 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
284 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
285 | | ${dut1_vif1_idx}= | Get Interface SW Index | ${dut1} | ${dut1_vif1}
286 | | ${dut1_vif2_idx}= | Get Interface SW Index | ${dut1} | ${dut1_vif2}
287 | | ${dut2_vif1_idx}= | Get Interface SW Index | ${dut2} | ${dut2_vif1}
288 | | ${dut2_vif2_idx}= | Get Interface SW Index | ${dut2} | ${dut2_vif2}
289 | | ${dut1_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
290 | | ... | ${dut1_vif1_idx}
291 | | ${dut1_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
292 | | ... | ${dut1_vif2_idx}
293 | | ${dut2_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
294 | | ... | ${dut2_vif1_idx}
295 | | ${dut2_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
296 | | ... | ${dut2_vif2_idx}
297 | | Set Test Variable | ${dut1_vif1_mac}
298 | | Set Test Variable | ${dut1_vif2_mac}
299 | | Set Test Variable | ${dut2_vif1_mac}
300 | | Set Test Variable | ${dut2_vif2_mac}
301 | | Add arp on dut | ${dut1} | ${dut1_if1} | 1.1.1.1 | ${tg1_if1_mac}
302 | | Add arp on dut | ${dut1} | ${dut1_if2} | 2.2.2.2 | ${dut2_if1_mac}
303 | | Add arp on dut | ${dut1} | ${dut1_vif1} | 4.4.4.2 | 52:54:00:00:04:01
304 | | Add arp on dut | ${dut1} | ${dut1_vif2} | 5.5.5.2 | 52:54:00:00:04:02
305 | | Add arp on dut | ${dut2} | ${dut2_if1} | 2.2.2.1 | ${dut1_if2_mac}
306 | | Add arp on dut | ${dut2} | ${dut2_if2} | 3.3.3.2 | ${tg1_if2_mac}
307 | | Add arp on dut | ${dut2} | ${dut2_vif1} | 4.4.4.2 | 52:54:00:00:04:01
308 | | Add arp on dut | ${dut2} | ${dut2_vif2} | 5.5.5.2 | 52:54:00:00:04:02
309 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 4.4.4.2 | ${dut1_vif1}
310 | | ... | vrf=${fib_table_1}
311 | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | 1.1.1.1 | ${dut1_if1}
312 | | ... | vrf=${fib_table_1}
313 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 2.2.2.2 | ${dut1_if2}
314 | | ... | vrf=${fib_table_2}
315 | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut1_vif2}
316 | | ... | vrf=${fib_table_2}
317 | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | 4.4.4.2 | ${dut2_vif1}
318 | | ... | vrf=${fib_table_1}
319 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 2.2.2.1 | ${dut2_if1}
320 | | ... | vrf=${fib_table_1}
321 | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | 3.3.3.2 | ${dut2_if2}
322 | | ... | vrf=${fib_table_2}
323 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut2_vif2}
324 | | ... | vrf=${fib_table_2}
325
326 | Initialize IPv4 forwarding with vhost for '${nr}' VMs in 3-node circular topology
327 | | [Documentation]
328 | | ... | Create pairs of Vhost-User interfaces for defined number of VMs on all
329 | | ... | VPP nodes. Set UP state of all VPP interfaces in path. Create ${nr}+1
330 | | ... | FIB tables on each DUT with multipath routing. Assign each Virtual
331 | | ... | interface to FIB table with Physical interface or Virtual interface on
332 | | ... | both nodes. Setup IPv4 addresses with /30 prefix on DUT-TG links and
333 | | ... | /30 prefix on DUT1-DUT2 link. Set routing on all DUT nodes in all FIB
334 | | ... | tables with prefix /24 and next hop of neighbour IPv4 address. Setup
335 | | ... | ARP on all VPP interfaces.
336 | | ...
337 | | ... | *Arguments:*
338 | | ... | _None_
339 | | ...
340 | | ... | *Note:*
341 | | ... | Socket paths for VM are defined in following format:
342 | | ... | - /tmp/sock-${VM_ID}-1
343 | | ... | - /tmp/sock-${VM_ID}-2
344 | | ...
345 | | ... | *Return:*
346 | | ... | - No value returned
347 | | ...
348 | | ... | *Example:*
349 | | ...
350 | | ... | \| IPv4 forwarding with Vhost-User for '2' VMs initialized in \
351 | | ... | a 3-node circular topology \|
352 | | ...
353 | | Set interfaces in path in 3-node circular topology up
354 | | ${fib_table_1}= | Set Variable | ${101}
355 | | ${fib_table_2}= | Evaluate | ${fib_table_1}+${nr}
356 | | Add Fib Table | ${dut1} | ${fib_table_1}
357 | | And Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | vrf=${fib_table_1}
358 | | ... | gateway=1.1.1.2 | interface=${dut1_if1} | multipath=${TRUE}
359 | | Add Fib Table | ${dut1} | ${fib_table_2}
360 | | And Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | vrf=${fib_table_2}
361 | | ... | gateway=2.2.2.2 | interface=${dut1_if2} | multipath=${TRUE}
362 | | Add Fib Table | ${dut2} | ${fib_table_1}
363 | | And Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | vrf=${fib_table_1}
364 | | ... | gateway=2.2.2.1 | interface=${dut2_if1} | multipath=${TRUE}
365 | | Add Fib Table | ${dut2} | ${fib_table_2}
366 | | And Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | vrf=${fib_table_2}
367 | | ... | gateway=3.3.3.2 | interface=${dut2_if2} | multipath=${TRUE}
368 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if1} | ${fib_table_1}
369 | | Assign Interface To Fib Table | ${dut1} | ${dut1_if2} | ${fib_table_2}
370 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if1} | ${fib_table_1}
371 | | Assign Interface To Fib Table | ${dut2} | ${dut2_if2} | ${fib_table_2}
372 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1} | 1.1.1.2 | 30
373 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2} | 2.2.2.1 | 30
374 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1} | 2.2.2.2 | 30
375 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if2} | 3.3.3.1 | 30
376 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
377 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
378 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
379 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
380 | | Add arp on dut | ${dut1} | ${dut1_if1} | 1.1.1.1 | ${tg1_if1_mac}
381 | | Add arp on dut | ${dut1} | ${dut1_if2} | 2.2.2.2 | ${dut2_if1_mac}
382 | | Add arp on dut | ${dut2} | ${dut2_if1} | 2.2.2.1 | ${dut1_if2_mac}
383 | | Add arp on dut | ${dut2} | ${dut2_if2} | 3.3.3.2 | ${tg1_if2_mac}
384 | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | 1.1.1.1 | ${dut1_if1}
385 | | ... | vrf=${fib_table_1}
386 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 2.2.2.2 | ${dut1_if2}
387 | | ... | vrf=${fib_table_2}
388 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 2.2.2.1 | ${dut2_if1}
389 | | ... | vrf=${fib_table_1}
390 | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | 3.3.3.2 | ${dut2_if2}
391 | | ... | vrf=${fib_table_2}
392 | | ${ip_base_start}= | Set Variable | ${4}
393 | | :FOR | ${number} | IN RANGE | 1 | ${nr}+1
394 | | | ${sock1}= | Set Variable | /tmp/sock-${number}-1
395 | | | ${sock2}= | Set Variable | /tmp/sock-${number}-2
396 | | | ${fib_table_1}= | Evaluate | ${100}+${number}
397 | | | ${fib_table_2}= | Evaluate | ${fib_table_1}+${1}
398 | | | ${ip_base_vif1}= | Evaluate | ${ip_base_start}+(${number}-1)*2
399 | | | ${ip_base_vif2}= | Evaluate | ${ip_base_vif1}+1
400 | | | ${ip_net_vif1}= | Set Variable
401 | | | ... | ${ip_base_vif1}.${ip_base_vif1}.${ip_base_vif1}
402 | | | ${ip_net_vif2}= | Set Variable
403 | | | ... | ${ip_base_vif2}.${ip_base_vif2}.${ip_base_vif2}
404 | | | Configure vhost interfaces for L2BD forwarding | ${dut1}
405 | | | ... | ${sock1} | ${sock2} | dut1-vhost-${number}-if1
406 | | | ... | dut1-vhost-${number}-if2
407 | | | Set Interface State | ${dut1} | ${dut1-vhost-${number}-if1} | up
408 | | | Set Interface State | ${dut1} | ${dut1-vhost-${number}-if2} | up
409 | | | Configure vhost interfaces for L2BD forwarding | ${dut2}
410 | | | ... | ${sock1} | ${sock2} | dut2-vhost-${number}-if1
411 | | | ... | dut2-vhost-${number}-if2
412 | | | Set Interface State | ${dut2} | ${dut2-vhost-${number}-if1} | up
413 | | | Set Interface State | ${dut2} | ${dut2-vhost-${number}-if2} | up
414 | | | Add Fib Table | ${dut1} | ${fib_table_1}
415 | | | And Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | vrf=${fib_table_1}
416 | | | ... | gateway=${ip_net_vif1}.1 | interface=${dut1-vhost-${number}-if1}
417 | | | ... | multipath=${TRUE}
418 | | | Add Fib Table | ${dut1} | ${fib_table_2}
419 | | | And Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | vrf=${fib_table_2}
420 | | | ... | gateway=${ip_net_vif2}.2 | interface=${dut1-vhost-${number}-if2}
421 | | | ... | multipath=${TRUE}
422 | | | Add Fib Table | ${dut2} | ${fib_table_1}
423 | | | And Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | vrf=${fib_table_1}
424 | | | ... | gateway=${ip_net_vif1}.1 | interface=${dut2-vhost-${number}-if1}
425 | | | ... | multipath=${TRUE}
426 | | | Add Fib Table | ${dut2} | ${fib_table_2}
427 | | | And Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | vrf=${fib_table_2}
428 | | | ... | gateway=${ip_net_vif2}.2 | interface=${dut2-vhost-${number}-if2}
429 | | | ... | multipath=${TRUE}
430 | | | Assign Interface To Fib Table | ${dut1} | ${dut1-vhost-${number}-if1}
431 | | | ... | ${fib_table_1}
432 | | | Assign Interface To Fib Table | ${dut1} | ${dut1-vhost-${number}-if2}
433 | | | ... | ${fib_table_2}
434 | | | Assign Interface To Fib Table | ${dut2} | ${dut2-vhost-${number}-if1}
435 | | | ... | ${fib_table_1}
436 | | | Assign Interface To Fib Table | ${dut2} | ${dut2-vhost-${number}-if2}
437 | | | ... | ${fib_table_2}
438 | | | Configure IP addresses on interfaces
439 | | | ... | ${dut1} | ${dut1-vhost-${number}-if1} | ${ip_net_vif1}.1 | 30
440 | | | ... | ${dut1} | ${dut1-vhost-${number}-if2} | ${ip_net_vif2}.1 | 30
441 | | | ... | ${dut2} | ${dut2-vhost-${number}-if1} | ${ip_net_vif1}.1 | 30
442 | | | ... | ${dut2} | ${dut2-vhost-${number}-if2} | ${ip_net_vif2}.1 | 30
443 | | | ${dut1_vif1_idx}= | Get Interface SW Index | ${dut1}
444 | | | ... | ${dut1-vhost-${number}-if1}
445 | | | ${dut1_vif2_idx}= | Get Interface SW Index | ${dut1}
446 | | | ... | ${dut1-vhost-${number}-if2}
447 | | | ${dut2_vif1_idx}= | Get Interface SW Index | ${dut2}
448 | | | ... | ${dut2-vhost-${number}-if1}
449 | | | ${dut2_vif2_idx}= | Get Interface SW Index | ${dut2}
450 | | | ... | ${dut2-vhost-${number}-if2}
451 | | | ${dut1_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
452 | | | ... | ${dut1_vif1_idx}
453 | | | ${dut1_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut1}
454 | | | ... | ${dut1_vif2_idx}
455 | | | ${dut2_vif1_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
456 | | | ... | ${dut2_vif1_idx}
457 | | | ${dut2_vif2_mac}= | Get Vhost User Mac By Sw Index | ${dut2}
458 | | | ... | ${dut2_vif2_idx}
459 | | | Set Test Variable | ${dut1-vhost-${number}-if1_mac}
460 | | | ... | ${dut1_vif1_mac}
461 | | | Set Test Variable | ${dut1-vhost-${number}-if2_mac}
462 | | | ... | ${dut1_vif2_mac}
463 | | | Set Test Variable | ${dut2-vhost-${number}-if1_mac}
464 | | | ... | ${dut2_vif1_mac}
465 | | | Set Test Variable | ${dut2-vhost-${number}-if2_mac}
466 | | | ... | ${dut2_vif2_mac}
467 | | | ${qemu_id}= | Set Variable If | ${number} < 10 | 0${number}
468 | | | ... | ${number}
469 | | | Add arp on dut | ${dut1} | ${dut1-vhost-${number}-if1}
470 | | | ... | ${ip_net_vif1}.2 | 52:54:00:00:${qemu_id}:01
471 | | | Add arp on dut | ${dut1} | ${dut1-vhost-${number}-if2}
472 | | | ... | ${ip_net_vif2}.2 | 52:54:00:00:${qemu_id}:02
473 | | | Add arp on dut | ${dut2} | ${dut2-vhost-${number}-if1}
474 | | | ... | ${ip_net_vif1}.2 | 52:54:00:00:${qemu_id}:01
475 | | | Add arp on dut | ${dut2} | ${dut2-vhost-${number}-if2}
476 | | | ... | ${ip_net_vif2}.2 | 52:54:00:00:${qemu_id}:02
477 | | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | ${ip_net_vif1}.2
478 | | | ... | ${dut1-vhost-${number}-if1} | vrf=${fib_table_1}
479 | | | Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | ${ip_net_vif2}.2
480 | | | ... | ${dut1-vhost-${number}-if2} | vrf=${fib_table_2}
481 | | | Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | ${ip_net_vif1}.2
482 | | | ... | ${dut2-vhost-${number}-if1} | vrf=${fib_table_1}
483 | | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | ${ip_net_vif2}.2
484 | | | ... | ${dut2-vhost-${number}-if2} | vrf=${fib_table_2}
485
486 | Initialize IPv4 policer 2r3c-${t} in 3-node circular topology
487 | | [Documentation]
488 | | ... | Setup of 2r3c color-aware or color-blind policer with dst ip match
489 | | ... | on all DUT nodes in 3-node circular topology. Policer is applied on
490 | | ... | links TG - DUT1 and DUT2 - TG.
491 | | ...
492 | | ${dscp}= | DSCP AF22
493 | | Policer Set Name | policer1
494 | | Policer Set CIR | ${cir}
495 | | Policer Set EIR | ${eir}
496 | | Policer Set CB | ${cb}
497 | | Policer Set EB | ${eb}
498 | | Policer Set Rate Type pps
499 | | Policer Set Round Type Closest
500 | | Policer Set Type 2R3C 2698
501 | | Policer Set Conform Action Transmit
502 | | Policer Set Exceed Action Mark and Transmit | ${dscp}
503 | | Policer Set Violate Action Transmit
504 | | Policer Enable Color Aware
505 | | Run Keyword If | ${t} == 'ca' | Policer Enable Color Aware
506 | | Policer Classify Set Precolor Exceed
507 | | Policer Set Node | ${dut1}
508 | | Policer Classify Set Interface | ${dut1_if1}
509 | | Policer Classify Set Match IP | 20.20.20.2 | ${False}
510 | | Policer Set Configuration
511 | | Policer Set Node | ${dut2}
512 | | Policer Classify Set Interface | ${dut2_if2}
513 | | Policer Classify Set Match IP | 10.10.10.2 | ${False}
514 | | Policer Set Configuration
515
516 | Initialize IPv6 forwarding in 3-node circular topology
517 | | [Documentation]
518 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
519 | | ... | topology. Get the interface MAC addresses and setup neighbour on all
520 | | ... | VPP interfaces. Setup IPv6 addresses with /128 prefixes on all
521 | | ... | interfaces. Set routing on both DUT nodes with prefix /64 and
522 | | ... | next hop of neighbour DUT interface IPv6 address.
523 | | ...
524 | | ${prefix}= | Set Variable | 64
525 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
526 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
527 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
528 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
529 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:1::1 | ${prefix}
530 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:3::1 | ${prefix}
531 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:3::2 | ${prefix}
532 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:2::1 | ${prefix}
533 | | Suppress ICMPv6 router advertisement message | ${nodes}
534 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
535 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
536 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:3::2 | ${dut2_if1_mac}
537 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:3::1 | ${dut1_if2_mac}
538 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${prefix} | 2001:3::2 | ${dut1_if2}
539 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${prefix} | 2001:3::1 | ${dut2_if1}
540
541 | Initialize IPv6 forwarding with scaling in 3-node circular topology
542 | | [Documentation]
543 | | ... | Custom setup of IPv6 topology with scalability of ip routes on all
544 | | ... | DUT nodes in 3-node circular topology
545 | | ...
546 | | ... | *Arguments:*
547 | | ... | - ${count} - IP route count. Type: integer
548 | | ...
549 | | ... | *Return:*
550 | | ... | - No value returned
551 | | ...
552 | | ... | *Example:*
553 | | ...
554 | | ... | \| Initialize IPv6 forwarding with scaling in 3-node circular \
555 | | ... | topology \| 100000 \|
556 | | ...
557 | | [Arguments] | ${count}
558 | | ...
559 | | ${subn_prefix}= | Set Variable | 64
560 | | ${host_prefix}= | Set Variable | 128
561 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | 2001:3::1 | ${subn_prefix}
562 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | 2001:4::1 | ${subn_prefix}
563 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | 2001:4::2 | ${subn_prefix}
564 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | 2001:5::1 | ${subn_prefix}
565 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
566 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
567 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
568 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
569 | | Suppress ICMPv6 router advertisement message | ${nodes}
570 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:3::2 | ${tg1_if1_mac}
571 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | 2001:4::2 | ${dut2_if1_mac}
572 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | 2001:4::1 | ${dut1_if2_mac}
573 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:5::2 | ${tg1_if2_mac}
574 | | Vpp Route Add | ${dut1} | 2001:2::0 | ${host_prefix} | 2001:4::2
575 | | ... | interface=${dut1_if2} | count=${count}
576 | | Vpp Route Add | ${dut1} | 2001:1::0 | ${host_prefix} | 2001:3::2
577 | | ... | interface=${dut1_if1} | count=${count}
578 | | Vpp Route Add | ${dut2} | 2001:1::0 | ${host_prefix} | 2001:4::1
579 | | ... | interface=${dut2_if1} | count=${count}
580 | | Vpp Route Add | ${dut2} | 2001:2::0 | ${host_prefix} | 2001:5::2
581 | | ... | interface=${dut2_if2} | count=${count}
582
583 | Initialize IPv6 iAcl whitelist in 3-node circular topology
584 | | [Documentation]
585 | | ... | Creates classify L3 table on DUTs. IPv6 iAcl security whitelist
586 | | ... | ingress /64 filter entries applied on links TG - DUT1 and DUT2 - TG.
587 | | ...
588 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
589 | | ... | ${dut1} | ip6 | dst
590 | | And Vpp Configures Classify Session L3
591 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
592 | | ... | ip6 | dst | 2001:2::2
593 | | And Vpp Enable Input Acl Interface
594 | | ... | ${dut1} | ${dut1_if1} | ip6 | ${table_idx}
595 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
596 | | ... | ${dut2} | ip6 | dst
597 | | And Vpp Configures Classify Session L3
598 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
599 | | ... | ip6 | dst | 2001:1::2
600 | | And Vpp Enable Input Acl Interface
601 | | ... | ${dut2} | ${dut2_if2} | ip6 | ${table_idx}
602
603 | Initialize IPv6 forwarding over SRv6 with encapsulation with '${n}' x SID '${prepos}' decapsulation in 3-node circular topology
604 | | [Documentation]
605 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
606 | | ... | topology. Get the interface MAC addresses and setup neighbours on all
607 | | ... | VPP interfaces. Setup IPv6 addresses on all interfaces. Set segment
608 | | ... | routing for IPv6 for required number of SIDs and configure IPv6 routes
609 | | ... | on both DUT nodes.
610 | | ...
611 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
612 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
613 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
614 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
615 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_if1_ip6} | ${prefix}
616 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_if2_ip6} | ${prefix}
617 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_if1_ip6} | ${prefix}
618 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_if2_ip6} | ${prefix}
619 | | Suppress ICMPv6 router advertisement message | ${nodes}
620 | | :FOR | ${number} | IN RANGE | 2 | ${dst_addr_nr}+2
621 | | | ${hexa_nr}= | Convert To Hex | ${number}
622 | | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | ${tg_if1_ip6_subnet}${hexa_nr}
623 | | | ... | ${tg1_if1_mac}
624 | | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | ${tg_if2_ip6_subnet}${hexa_nr}
625 | | | ... | ${tg1_if2_mac}
626 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_if1_ip6} | ${dut2_if1_mac}
627 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_if2_ip6} | ${dut1_if2_mac}
628 | | ${sid1}= | Set Variable If
629 | | ... | "${n}" == "1" | ${dut2_sid1}
630 | | ... | "${n}" == "2" | ${dut2_sid1_1}
631 | | ${sid2}= | Set Variable If
632 | | ... | "${n}" == "1" | ${dut1_sid2}
633 | | ... | "${n}" == "2" | ${dut1_sid2_1}
634 | | Vpp Route Add | ${dut1} | ${sid1} | ${sid_prefix} | ${dut2_if1_ip6}
635 | | ... | ${dut1_if2}
636 | | Vpp Route Add | ${dut2} | ${sid2} | ${sid_prefix} | ${dut1_if2_ip6}
637 | | ... | ${dut2_if1}
638 # Configure SRv6 for direction0
639 | | Set SR Encaps Source Address on DUT | ${dut1} | ${dut1_sid1}
640 | | @{sid_list_dir0}= | Run Keyword If | "${n}" == "1"
641 | | ... | Create List | ${dut2_sid1}
642 | | ... | ELSE IF | "${n}" == "2"
643 | | ... | Create List | ${dut2_sid1_1} | ${dut2_sid1_2}
644 | | Configure SR Policy on DUT | ${dut1} | ${dut1_bsid} | encap
645 | | ... | @{sid_list_dir0}
646 | | Configure SR Steer on DUT | ${dut1} | L3 | ${dut1_bsid}
647 | | ... | ip_addr=${tg_if2_ip6_subnet} | prefix=${sid_prefix}
648 | | Run Keyword If | "${n}" == "1"
649 | | ... | Configure SR LocalSID on DUT | ${dut2} | ${dut2_sid1} | end.dx6
650 | | ... | interface=${dut2_if2} | next_hop=${tg_if2_ip6_subnet}2
651 | | Run Keyword If | "${n}" == "2"
652 | | ... | Configure SR LocalSID on DUT | ${dut2} | ${dut2_sid1_1} | end
653 | | Run Keyword If | "${n}" == "2" and "${prepos}" != "without"
654 | | ... | Configure SR LocalSID on DUT | ${dut2} | ${dut2_sid1_2} | end.dx6
655 | | ... | interface=${dut2_if2} | next_hop=${tg_if2_ip6_subnet}2
656 | | Run Keyword If | "${n}" == "2" and "${prepos}" == "without"
657 | | ... | Vpp Route Add | ${dut2} | ${dut2_sid1_2} | ${sid_prefix}
658 | | ... | ${tg_if2_ip6_subnet}2 | ${dut2_if2}
659 # Configure SRv6 for direction1
660 | | Set SR Encaps Source Address on DUT | ${dut2} | ${dut2_sid2}
661 | | @{sid_list_dir1}= | Run Keyword If | "${n}" == "1"
662 | | ... | Create List | ${dut1_sid2}
663 | | ... | ELSE IF | "${n}" == "2"
664 | | ... | Create List | ${dut1_sid2_1} | ${dut1_sid2_2}
665 | | Configure SR Policy on DUT | ${dut2} | ${dut2_bsid} | encap
666 | | ... | @{sid_list_dir1}
667 | | Configure SR Steer on DUT | ${dut2} | L3 | ${dut2_bsid}
668 | | ... | ip_addr=${tg_if1_ip6_subnet} | prefix=${sid_prefix}
669 | | Run Keyword If | "${n}" == "1"
670 | | ... | Configure SR LocalSID on DUT | ${dut1} | ${dut1_sid2} | end.dx6
671 | | ... | interface=${dut1_if1} | next_hop=${tg_if1_ip6_subnet}2
672 | | Run Keyword If | "${n}" == "2"
673 | | ... | Configure SR LocalSID on DUT | ${dut1} | ${dut1_sid2_1} | end
674 | | Run Keyword If | "${n}" == "2" and "${prepos}" != "without"
675 | | ... | Configure SR LocalSID on DUT | ${dut1} | ${dut1_sid2_2} | end.dx6
676 | | ... | interface=${dut1_if1} | next_hop=${tg_if1_ip6_subnet}2
677 | | Run Keyword If | "${n}" == "2" and "${prepos}" == "without"
678 | | ... | Vpp Route Add | ${dut1} | ${dut1_sid2_2} | ${sid_prefix}
679 | | ... | ${tg_if1_ip6_subnet}2 | ${dut1_if1}
680
681 | Initialize IPv6 forwarding over SRv6 with endpoint to SR-unaware Service Function via '${behavior}' behaviour in 3-node circular topology
682 | | [Documentation]
683 | | ... | Create pair of Memif interfaces on all defined VPP nodes. Set UP
684 | | ... | state on VPP interfaces in path on nodes in 3-node circular topology.
685 | | ... | Get the interface MAC addresses and setup neighbours on all VPP
686 | | ... | interfaces. Setup IPv6 addresses on all interfaces. Set segment
687 | | ... | routing for IPv6 with defined behaviour function and configure IPv6
688 | | ... | routes on both DUT nodes.
689 | | ...
690 | | ... | *Note:*
691 | | ... | KW uses test variable ${rxq_count_int} set by KW Add worker threads
692 | | ... | and rxqueues to all DUTs
693 | | ...
694 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
695 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
696 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
697 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
698 | | ${sock1}= | Set Variable | memif-DUT1_VNF
699 | | ${sock2}= | Set Variable | memif-DUT2_VNF
700 | | Set up memif interfaces on DUT node | ${dut1} | ${sock1} | ${sock1}
701 | | ... | ${1} | dut1-memif-1-if1 | dut1-memif-1-if2 | ${rxq_count_int}
702 | | ... | ${rxq_count_int}
703 | | Set up memif interfaces on DUT node | ${dut2} | ${sock2} | ${sock2}
704 | | ... | ${1} | dut2-memif-1-if1 | dut2-memif-1-if2 | ${rxq_count_int}
705 | | ... | ${rxq_count_int}
706 | | ${duts}= | Get Matches | ${nodes} | DUT*
707 | | :FOR | ${dut} | IN | @{duts}
708 | | | Show Memif | ${nodes['${dut}']}
709 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_if1_ip6} | ${prefix}
710 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_if2_ip6} | ${prefix}
711 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1-memif-1-if1}
712 | | ... | ${dut1-memif-1-if1_ip6} | ${prefix}
713 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1-memif-1-if2}
714 | | ... | ${dut1-memif-1-if2_ip6} | ${prefix}
715 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_if1_ip6} | ${prefix}
716 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_if2_ip6} | ${prefix}
717 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2-memif-1-if1}
718 | | ... | ${dut2-memif-1-if1_ip6} | ${prefix}
719 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2-memif-1-if2}
720 | | ... | ${dut2-memif-1-if2_ip6} | ${prefix}
721 | | Suppress ICMPv6 router advertisement message | ${nodes}
722 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_if1_ip6} | ${dut2_if1_mac}
723 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_if2_ip6} | ${dut1_if2_mac}
724 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | ${tg_if1_ip6_subnet}2
725 | | ... | ${tg1_if1_mac}
726 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | ${tg_if2_ip6_subnet}2
727 | | ... | ${tg1_if2_mac}
728 | | ${dut1-memif-1-if2_mac}= | Get Interface MAC | ${dut1} | memif2
729 | | ${dut2-memif-1-if2_mac}= | Get Interface MAC | ${dut2} | memif2
730 | | Add Ip Neighbor | ${dut1} | ${dut1-memif-1-if1} | ${dut1_nh}
731 | | ... | ${dut1-memif-1-if2_mac}
732 | | Add Ip Neighbor | ${dut2} | ${dut2-memif-1-if1} | ${dut2_nh}
733 | | ... | ${dut2-memif-1-if2_mac}
734 | | Vpp Route Add | ${dut1} | ${dut2_sid1} | ${sid_prefix} | ${dut2_if1_ip6}
735 | | ... | ${dut1_if2}
736 | | Vpp Route Add | ${dut1} | ${out_sid2_1} | ${sid_prefix}
737 | | ... | ${tg_if1_ip6_subnet}2 | ${dut1_if1}
738 | | Vpp Route Add | ${dut2} | ${dut1_sid2} | ${sid_prefix} | ${dut1_if2_ip6}
739 | | ... | ${dut2_if1}
740 | | Vpp Route Add | ${dut2} | ${out_sid1_1} | ${sid_prefix}
741 | | ... | ${tg_if2_ip6_subnet}2 | ${dut2_if2}
742 # Configure SRv6 for direction0 on DUT1
743 | | Set SR Encaps Source Address on DUT | ${dut1} | ${dut1_sid1}
744 | | @{sid_list_dir0}= | Create List | ${dut2_sid1} | ${out_sid1_1}
745 | | ... | ${out_sid1_2}
746 | | Configure SR Policy on DUT | ${dut1} | ${dut1_bsid} | encap
747 | | ... | @{sid_list_dir0}
748 | | Configure SR Steer on DUT | ${dut1} | L3 | ${dut1_bsid}
749 | | ... | ip_addr=${tg_if2_ip6_subnet} | prefix=${sid_prefix}
750 # Configure SRv6 for direction1 on DUT2
751 | | Set SR Encaps Source Address on DUT | ${dut2} | ${dut2_sid2}
752 | | @{sid_list_dir1}= | Create List | ${dut1_sid2} | ${out_sid2_1}
753 | | ... | ${out_sid2_2}
754 | | Configure SR Policy on DUT | ${dut2} | ${dut2_bsid} | encap
755 | | ... | @{sid_list_dir1}
756 | | Configure SR Steer on DUT | ${dut2} | L3 | ${dut2_bsid}
757 | | ... | ip_addr=${tg_if1_ip6_subnet} | prefix=${sid_prefix}
758 # Configure SRv6 for direction0 on DUT2
759 | | ${dut2_out_if}= | Get Interface Name | ${dut2} | memif1
760 | | ${dut2_in_if}= | Get Interface Name | ${dut2} | memif2
761 | | Remove Values From List | ${sid_list_dir0} | ${dut2_sid1}
762 | | Run Keyword If | "${behavior}" == "static_proxy"
763 | | ... | Configure SR LocalSID on DUT | ${dut2} | ${dut2_sid1} | end.as
764 | | ... | ${NONE} | ${dut2_nh} | ${NONE} | ${dut2_out_if} | ${dut2_in_if}
765 | | ... | ${dut1_sid1} | @{sid_list_dir0}
766 | | ... | ELSE IF | "${behavior}" == "dynamic_proxy"
767 | | ... | Configure SR LocalSID on DUT | ${dut2} | ${dut2_sid1} | end.ad
768 | | ... | next_hop=${dut2_nh} | out_if=${dut2_out_if} | in_if=${dut2_in_if}
769 | | ... | ELSE IF | "${behavior}" == "masquerading"
770 | | ... | Configure SR LocalSID on DUT | ${dut2} | ${dut2_sid1} | end.am
771 | | ... | next_hop=${dut2_nh} | out_if=${dut2_out_if} | in_if=${dut2_in_if}
772 | | ... | ELSE | Fail | Unsupported behaviour: ${behavior}
773 # Configure SRv6 for direction1 on DUT1
774 | | ${dut1_out_if}= | Get Interface Name | ${dut1} | memif1
775 | | ${dut1_in_if}= | Get Interface Name | ${dut1} | memif2
776 | | Remove Values From List | ${sid_list_dir1} | ${dut1_sid2}
777 | | Run Keyword If | "${behavior}" == "static_proxy"
778 | | ... | Configure SR LocalSID on DUT | ${dut1} | ${dut1_sid2} | end.as
779 | | ... | ${NONE} | ${dut1_nh} | ${NONE} | ${dut1_out_if} | ${dut1_in_if}
780 | | ... | ${dut2_sid2} | @{sid_list_dir1}
781 | | ... | ELSE IF | "${behavior}" == "dynamic_proxy"
782 | | ... | Configure SR LocalSID on DUT | ${dut1} | ${dut1_sid2} | end.ad
783 | | ... | next_hop=${dut1_nh} | out_if=${dut1_out_if} | in_if=${dut1_in_if}
784 | | ... | ELSE IF | "${behavior}" == "masquerading"
785 | | ... | Configure SR LocalSID on DUT | ${dut1} | ${dut1_sid2} | end.am
786 | | ... | next_hop=${dut1_nh} | out_if=${dut1_out_if} | in_if=${dut1_in_if}
787 | | ... | ELSE | Fail | Unsupported behaviour: ${behavior}
788 | | All Vpp Interfaces Ready Wait | ${nodes}
789
790 | Initialize L2 xconnect in 2-node circular topology
791 | | [Documentation]
792 | | ... | Setup L2 xconnect topology by cross connecting two interfaces on
793 | | ... | each DUT. Interfaces are brought up.
794 | | ...
795 | | Configure L2XC | ${dut1} | ${dut1_if1} | ${dut1_if2}
796 | | All Vpp Interfaces Ready Wait | ${nodes}
797
798 | Initialize L2 xconnect in 3-node circular topology
799 | | [Documentation]
800 | | ... | Setup L2 xconnect topology by cross connecting two interfaces on
801 | | ... | each DUT. Interfaces are brought up.
802 | | ... |
803 | | Configure L2XC | ${dut1} | ${dut1_if1} | ${dut1_if2}
804 | | Configure L2XC | ${dut2} | ${dut2_if1} | ${dut2_if2}
805 | | All Vpp Interfaces Ready Wait | ${nodes}
806
807 | Initialize L2 xconnect with VXLANoIPv4 in 3-node circular topology
808 | | [Documentation]
809 | | ... | Setup L2 xconnect topology with VXLANoIPv4 by cross connecting
810 | | ... | physical and vxlan interfaces on each DUT. All interfaces are brought
811 | | ... | up. IPv4 addresses with prefix /24 are configured on interfaces
812 | | ... | between DUTs. VXLAN sub-interfaces has same IPv4 address as
813 | | ... | interfaces.
814 | | ...
815 | | Set interfaces in path in 3-node circular topology up
816 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2} | 172.16.0.1 | 24
817 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1} | 172.16.0.2 | 24
818 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
819 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
820 | | Add arp on dut | ${dut1} | ${dut1_if2} | 172.16.0.2 | ${dut2_if1_mac}
821 | | Add arp on dut | ${dut2} | ${dut2_if1} | 172.16.0.1 | ${dut1_if2_mac}
822 | | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | 24
823 | | ... | 172.16.0.1 | 172.16.0.2
824 | | Configure L2XC | ${dut1} | ${dut1_if1} | ${dut1s_vxlan}
825 | | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | 24
826 | | ... | 172.16.0.2 | 172.16.0.1
827 | | Configure L2XC | ${dut2} | ${dut2_if2} | ${dut2s_vxlan}
828
829 | Initialize L2 xconnect with Vhost-User in 3-node circular topology
830 | | [Documentation]
831 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Cross
832 | | ... | connect each Vhost interface with one physical interface.
833 | | ...
834 | | ... | *Arguments:*
835 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
836 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
837 | | ...
838 | | ... | _NOTE:_ This KW uses following test case variables:
839 | | ... | - ${dut1} - DUT1 node.
840 | | ... | - ${dut2} - DUT2 node.
841 | | ... | - ${dut1_if1} - DUT1 interface towards TG.
842 | | ... | - ${dut1_if2} - DUT1 interface towards DUT2.
843 | | ... | - ${dut2_if1} - DUT2 interface towards DUT1.
844 | | ... | - ${dut2_if2} - DUT2 interface towards TG.
845 | | ...
846 | | ... | *Example:*
847 | | ...
848 | | ... | \| L2 xconnect with Vhost-User initialized in a 3-node \
849 | | ... | circular topology \| /tmp/sock1 \| /tmp/sock2 \|
850 | | ...
851 | | [Arguments] | ${sock1} | ${sock2}
852 | | ...
853 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
854 | | ... | ${sock1} | ${sock2} | dut1_vhost_if1 | dut1_vhost_if2
855 | | Configure L2XC | ${dut1} | ${dut1_if1} | ${dut1_vhost_if1}
856 | | Configure L2XC | ${dut1} | ${dut1_if2} | ${dut1_vhost_if2}
857 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
858 | | ... | ${sock1} | ${sock2} | dut2_vhost_if1 | dut2_vhost_if2
859 | | Configure L2XC | ${dut2} | ${dut2_if1} | ${dut2_vhost_if1}
860 | | Configure L2XC | ${dut2} | ${dut2_if2} | ${dut2_vhost_if2}
861
862 | Initialize L2 xconnect with Vhost-User for '${nr}' in 3-node circular topology
863 | | [Documentation]
864 | | ... | Create pairs of Vhost-User interfaces on all defined VPP nodes. Cross
865 | | ... | connect each Vhost interface with one physical interface or virtual
866 | | ... | interface to create a chain accross DUT node.
867 | | ...
868 | | ... | *Arguments:*
869 | | ... | _None_
870 | | ...
871 | | ... | *Note:*
872 | | ... | Socket paths for VM are defined in following format:
873 | | ... | - /tmp/sock-${VM_ID}-1
874 | | ... | - /tmp/sock-${VM_ID}-2
875 | | ...
876 | | ... | *Example:*
877 | | ...
878 | | ... | \| L2 xconnect with Vhost-User for '2' initialized in a 3-node \
879 | | ... | circular topology \|
880 | | ...
881 | | :FOR | ${number} | IN RANGE | 1 | ${nr}+1
882 | | | ${sock1}= | Set Variable | /tmp/sock-${number}-1
883 | | | ${sock2}= | Set Variable | /tmp/sock-${number}-2
884 | | | ${prev_index}= | Evaluate | ${number}-1
885 | | | Configure vhost interfaces for L2BD forwarding | ${dut1}
886 | | | ... | ${sock1} | ${sock2} | dut1-vhost-${number}-if1
887 | | | ... | dut1-vhost-${number}-if2
888 | | | ${dut1_xconnect_if1}= | Set Variable If | ${number}==1 | ${dut1_if1}
889 | | | ... | ${dut1-vhost-${prev_index}-if2}
890 | | | Configure L2XC | ${dut1} | ${dut1_xconnect_if1}
891 | | | ... | ${dut1-vhost-${number}-if1}
892 | | | Configure vhost interfaces for L2BD forwarding | ${dut2}
893 | | | ... | ${sock1} | ${sock2} | dut2-vhost-${number}-if1
894 | | | ... | dut2-vhost-${number}-if2
895 | | | ${dut2_xconnect_if1}= | Set Variable If | ${number}==1 | ${dut2_if1}
896 | | | ... | ${dut2-vhost-${prev_index}-if2}
897 | | | Configure L2XC | ${dut2} | ${dut2_xconnect_if1}
898 | | | ... | ${dut2-vhost-${number}-if1}
899 | | | Run Keyword If | ${number}==${nr} | Configure L2XC
900 | | | ... | ${dut1} | ${dut1-vhost-${number}-if2} | ${dut1_if2}
901 | | | Run Keyword If | ${number}==${nr} | Configure L2XC
902 | | | ... | ${dut2} | ${dut2-vhost-${number}-if2} | ${dut2_if2}
903
904 | Initialize L2 xconnect with Vhost-User and VLAN in 3-node circular topology
905 | | [Documentation]
906 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Cross
907 | | ... | connect each Vhost interface with one physical interface.
908 | | ... | Setup VLAN between DUTs. All interfaces are brought up.
909 | | ...
910 | | ... | *Arguments:*
911 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
912 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
913 | | ... | - subid - ID of the sub-interface to be created. Type: string
914 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
915 | | ...
916 | | ... | *Example:*
917 | | ...
918 | | ... | \| L2 xconnect with Vhost-User and VLAN initialized in a 3-node\
919 | | ... | circular topology \| /tmp/sock1 \| /tmp/sock2 \| 10 \| pop-1 \|
920 | | ...
921 | | [Arguments] | ${sock1} | ${sock2} | ${subid} | ${tag_rewrite}
922 | | ...
923 | | Set interfaces in path in 3-node circular topology up
924 | | Initialize VLAN dot1q sub-interfaces in 3-node circular topology
925 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
926 | | Configure L2 tag rewrite method on interfaces
927 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
928 | | ... | ${tag_rewrite}
929 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
930 | | ... | ${sock1} | ${sock2}
931 | | Configure L2XC | ${dut1} | ${dut1_if1} | ${vhost_if1}
932 | | Configure L2XC | ${dut1} | ${subif_index_1} | ${vhost_if2}
933 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
934 | | ... | ${sock1} | ${sock2}
935 | | Configure L2XC | ${dut2} | ${subif_index_2} | ${vhost_if1}
936 | | Configure L2XC | ${dut2} | ${dut2_if2} | ${vhost_if2}
937
938 | Initialize L2 xconnect with Vhost-User and VLAN with DPDK link bonding in 3-node circular topology
939 | | [Documentation]
940 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Setup VLAN
941 | | ... | on BondEthernet interfaces between DUTs. Cross connect one Vhost
942 | | ... | interface with physical interface towards TG and other Vhost interface
943 | | ... | with VLAN sub-interface. All interfaces are brought up.
944 | | ...
945 | | ... | *Arguments:*
946 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
947 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
948 | | ... | - subid - ID of the sub-interface to be created. Type: string
949 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
950 | | ...
951 | | ... | *Example:*
952 | | ...
953 | | ... | \| Initialize L2 xconnect with Vhost-User and VLAN with DPDK link\
954 | | ... | bonding in 3-node circular topology \| /tmp/sock1 \| /tmp/sock2 \
955 | | ... | \| 10 \| pop-1 \|
956 | | ...
957 | | [Arguments] | ${sock1} | ${sock2} | ${subid} | ${tag_rewrite}
958 | | ...
959 | | Set interfaces in path in 3-node circular topology up
960 | | Set Interface State | ${dut1} | ${dut1_eth_bond_if1} | up
961 | | Set Interface State | ${dut2} | ${dut2_eth_bond_if1} | up
962 | | Initialize VLAN dot1q sub-interfaces in 3-node circular topology
963 | | ... | ${dut1} | ${dut1_eth_bond_if1} | ${dut2} | ${dut2_eth_bond_if1}
964 | | ... | ${subid}
965 | | Configure L2 tag rewrite method on interfaces
966 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
967 | | ... | ${tag_rewrite}
968 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
969 | | ... | ${sock1} | ${sock2}
970 | | Configure L2XC | ${dut1} | ${dut1_if1} | ${vhost_if1}
971 | | Configure L2XC | ${dut1} | ${subif_index_1} | ${vhost_if2}
972 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
973 | | ... | ${sock1} | ${sock2}
974 | | Configure L2XC | ${dut2} | ${subif_index_2} | ${vhost_if1}
975 | | Configure L2XC | ${dut2} | ${dut2_if2} | ${vhost_if2}
976
977 | Initialize L2 xconnect with Vhost-User and VLAN with VPP link bonding in 3-node circular topology
978 | | [Documentation]
979 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Create one
980 | | ... | link bonding (BondEthernet) interface on both VPP nodes. Enslave one
981 | | ... | physical interface towards next DUT by BondEthernet interface. Setup
982 | | ... | VLAN on BondEthernet interfaces between DUTs. Cross connect one Vhost
983 | | ... | interface with physical interface towards TG and other Vhost interface
984 | | ... | with VLAN sub-interface. All interfaces are brought up.
985 | | ...
986 | | ... | *Arguments:*
987 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
988 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
989 | | ... | - subid - ID of the sub-interface to be created. Type: string
990 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
991 | | ... | - bond_mode - Link bonding mode. Type: string
992 | | ... | - lb_mode - Load balance mode. Type: string
993 | | ...
994 | | ... | *Example:*
995 | | ...
996 | | ... | \| Initialize L2 xconnect with Vhost-User and VLAN with VPP link\
997 | | ... | bonding in 3-node circular topology \| /tmp/sock1 \| /tmp/sock2 \
998 | | ... | \| 10 \| pop-1 \| \| xor \| l34 \|
999 | | ...
1000 | | [Arguments] | ${sock1} | ${sock2} | ${subid} | ${tag_rewrite} | ${bond_mode}
1001 | | ... | ${lb_mode}
1002 | | ...
1003 | | Set interfaces in path in 3-node circular topology up
1004 | | ${dut1_eth_bond_if1}= | VPP Create Bond Interface | ${dut1} | ${bond_mode}
1005 | | ... | ${lb_mode}
1006 | | Set Interface State | ${dut1} | ${dut1_eth_bond_if1} | up
1007 | | VPP Enslave Physical Interface | ${dut1} | ${dut1_if2}
1008 | | ... | ${dut1_eth_bond_if1}
1009 | | ${dut2_eth_bond_if1}= | VPP Create Bond Interface | ${dut2} | ${bond_mode}
1010 | | ... | ${lb_mode}
1011 | | Set Interface State | ${dut2} | ${dut2_eth_bond_if1} | up
1012 | | VPP Enslave Physical Interface | ${dut2} | ${dut2_if1}
1013 | | ... | ${dut2_eth_bond_if1}
1014 | | VPP Show Bond Data On All Nodes | ${nodes} | details=${TRUE}
1015 | | Initialize VLAN dot1q sub-interfaces in 3-node circular topology
1016 | | ... | ${dut1} | ${dut1_eth_bond_if1} | ${dut2} | ${dut2_eth_bond_if1}
1017 | | ... | ${subid}
1018 | | Configure L2 tag rewrite method on interfaces
1019 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
1020 | | ... | ${tag_rewrite}
1021 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
1022 | | ... | ${sock1} | ${sock2}
1023 | | Configure L2XC | ${dut1} | ${dut1_if1} | ${vhost_if1}
1024 | | Configure L2XC | ${dut1} | ${subif_index_1} | ${vhost_if2}
1025 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
1026 | | ... | ${sock1} | ${sock2}
1027 | | Configure L2XC | ${dut2} | ${subif_index_2} | ${vhost_if1}
1028 | | Configure L2XC | ${dut2} | ${dut2_if2} | ${vhost_if2}
1029
1030 | Initialize L2 bridge domain in 2-node circular topology
1031 | | [Documentation]
1032 | | ... | Setup L2 DB topology by adding two interfaces on DUT into BD
1033 | | ... | that is created automatically with index 1. Learning is enabled.
1034 | | ... | Interfaces are brought up.
1035 | | ...
1036 | | ... | *Arguments:*
1037 | | ... | - bd_id - Bridge domain ID. Type: integer
1038 | | ...
1039 | | ... | *Example:*
1040 | | ...
1041 | | ... | \| Initialize L2 bridge domain in 2-node circular topology \| 1 \|
1042 | | ...
1043 | | [Arguments] | ${bd_id}=${1}
1044 | | ...
1045 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id}
1046 | | Add interface to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id}
1047 | | All Vpp Interfaces Ready Wait | ${nodes}
1048
1049 | Initialize L2 bridge domain in 3-node circular topology
1050 | | [Documentation]
1051 | | ... | Setup L2 DB topology by adding two interfaces on each DUT into BD
1052 | | ... | that is created automatically with index 1. Learning is enabled.
1053 | | ... | Interfaces are brought up.
1054 | | ...
1055 | | ... | *Arguments:*
1056 | | ... | - bd_id - Bridge domain ID. Type: integer
1057 | | ...
1058 | | ... | *Example:*
1059 | | ...
1060 | | ... | \| Initialize L2 bridge domain in 3-node circular topology \| 1 \|
1061 | | ...
1062 | | [Arguments] | ${bd_id}=${1}
1063 | | ...
1064 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id}
1065 | | Add interface to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id}
1066 | | Add interface to bridge domain | ${dut2} | ${dut2_if1} | ${bd_id}
1067 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id}
1068 | | All Vpp Interfaces Ready Wait | ${nodes}
1069
1070 | Configure IPv4 ACLs
1071 | | [Documentation]
1072 | | ... | Configure ACL with required number of not-hitting permit ACEs plus two
1073 | | ... | hitting ACEs for both traffic directions.
1074 | | ...
1075 | | ... | *Arguments:*
1076 | | ... | - dut_node - DUT node. Type: dictionary
1077 | | ... | - dut_if1 - DUT node interface1 name (Optional). Type: string
1078 | | ... | - dut_if2 - DUT node interface2 name (Optional). Type: string
1079 | | ...
1080 | | ... | *Example:*
1081 | | ...
1082 | | ... | \| Configure IPv4 ACLs \| ${nodes['DUT1']} \| GigabitEthernet0/7/0 \
1083 | | ... | \| GigabitEthernet0/8/0 \|
1084 | | ...
1085 | | ... | _NOTE:_ This KW uses following test case variables:
1086 | | ... | - ${src_ip_start} - Source IP address start. Type: string
1087 | | ... | - ${dst_ip_start} - Destination IP address start. Type: string
1088 | | ... | - ${ip_step} - IP address step. Type: string
1089 | | ... | - ${sport_start} - Source port number start. Type: string
1090 | | ... | - ${dport_start} - Destination port number start. Type: string
1091 | | ... | - ${port_step} - Port number step. Type: string
1092 | | ... | - ${no_hit_aces_number} - Number of not-hitting ACEs to be configured.
1093 | | ... | Type: integer
1094 | | ... | - ${acl_apply_type} - To what path apply the ACL - input or output.
1095 | | ... | Type: string
1096 | | ... | - ${acl_action} - Action for the rule - deny, permit, permit+reflect.
1097 | | ... | Type: string
1098 | | ... | - ${trex_stream1_subnet} - IP subnet used by T-Rex in direction 0->1.
1099 | | ... | Type: string
1100 | | ... | - ${trex_stream2_subnet} - IP subnet used by T-Rex in direction 1->0.
1101 | | ... | Type: string
1102 | | ...
1103 | | [Arguments] | ${dut} | ${dut_if1}=${NONE} | ${dut_if2}=${NONE}
1104 | | ${src_ip_int} = | Evaluate
1105 | | ... | int(ipaddress.ip_address(unicode($src_ip_start))) - $ip_step
1106 | | ... | modules=ipaddress
1107 | | ${dst_ip_int} = | Evaluate
1108 | | ... | int(ipaddress.ip_address(unicode($dst_ip_start))) - $ip_step
1109 | | ... | modules=ipaddress
1110 | | ${ip_limit} = | Set Variable | 255.255.255.255
1111 | | ${ip_limit_int} = | Evaluate
1112 | | ... | int(ipaddress.ip_address(unicode($ip_limit))) | modules=ipaddress
1113 | | ${sport}= | Evaluate | $sport_start - $port_step
1114 | | ${dport}= | Evaluate | $dport_start - $port_step
1115 | | ${port_limit}= | Set Variable | ${65535}
1116 | | ${acl}= | Set Variable | ipv4 permit
1117 | | :FOR | ${nr} | IN RANGE | 0 | ${no_hit_aces_number}
1118 | | | ${src_ip_int} = | Evaluate | $src_ip_int + $ip_step
1119 | | | ${dst_ip_int} = | Evaluate | $dst_ip_int + $ip_step
1120 | | | ${sport}= | Evaluate | $sport + $port_step
1121 | | | ${dport}= | Evaluate | $dport + $port_step
1122 | | | ${ipv4_limit_reached}= | Set Variable If
1123 | | | ... | $src_ip_int > $ip_limit_int or $src_ip_int > $ip_limit_int
1124 | | | ... | ${TRUE}
1125 | | | ${udp_limit_reached}= | Set Variable If
1126 | | | ... | $sport > $port_limit or $dport > $port_limit | ${TRUE}
1127 | | | Run Keyword If | $ipv4_limit_reached is True | Log
1128 | | | ... | Can't do more iterations - IPv4 address limit has been reached.
1129 | | | ... | WARN
1130 | | | Run Keyword If | $udp_limit_reached is True | Log
1131 | | | ... | Can't do more iterations - UDP port limit has been reached.
1132 | | | ... | WARN
1133 | | | ${src_ip} = | Run Keyword If | $ipv4_limit_reached is True
1134 | | | ... | Set Variable | ${ip_limit}
1135 | | | ... | ELSE | Evaluate | str(ipaddress.ip_address($src_ip_int))
1136 | | | ... | modules=ipaddress
1137 | | | ${dst_ip} = | Run Keyword If | $ipv4_limit_reached is True
1138 | | | ... | Set Variable | ${ip_limit}
1139 | | | ... | ELSE | Evaluate | str(ipaddress.ip_address($dst_ip_int))
1140 | | | ... | modules=ipaddress
1141 | | | ${sport}= | Set Variable If | ${sport} > $port_limit | $port_limit
1142 | | | ... | ${sport}
1143 | | | ${dport}= | Set Variable If | ${dport} > $port_limit | $port_limit
1144 | | | ... | ${dport}
1145 | | | ${acl}= | Catenate | ${acl} | src ${src_ip}/32 dst ${dst_ip}/32
1146 | | | ... | sport ${sport} | dport ${dport},
1147 | | | Exit For Loop If
1148 | | | ... | $ipv4_limit_reached is True or $udp_limit_reached is True
1149 | | ${acl}= | Catenate | ${acl}
1150 | | ... | ipv4 ${acl_action} src ${trex_stream1_subnet},
1151 | | ... | ipv4 ${acl_action} src ${trex_stream2_subnet}
1152 | | Add Replace Acl Multi Entries | ${dut} | rules=${acl}
1153 | | @{acl_list}= | Create List | ${0}
1154 | | Run Keyword If | 'input' in $acl_apply_type and $dut_if1 is not None
1155 | | ... | Set Acl List For Interface | ${dut} | ${dut_if1} | input | ${acl_list}
1156 | | Run Keyword If | 'input' in $acl_apply_type and $dut_if2 is not None
1157 | | ... | Set Acl List For Interface | ${dut} | ${dut_if2} | input | ${acl_list}
1158 | | Run Keyword If | 'output' in $acl_apply_type and $dut_if1 is not None
1159 | | ... | Set Acl List For Interface | ${dut} | ${dut_if1} | output
1160 | | ... | ${acl_list}
1161 | | Run Keyword If | 'output' in $acl_apply_type and $dut_if2 is not None
1162 | | ... | Set Acl List For Interface | ${dut} | ${dut_if2} | output
1163 | | ... | ${acl_list}
1164
1165 | Initialize L2 bridge domain with IPv4 ACLs on DUT1 in 3-node circular topology
1166 | | [Documentation]
1167 | | ... | Setup L2BD topology by adding two interfaces on DUT1 into bridge
1168 | | ... | domain that is created automatically with index 1. Learning is
1169 | | ... | enabled. Interfaces are brought up. Apply required ACL rules to DUT1
1170 | | ... | interfaces.
1171 | | ...
1172 | | ... | *Arguments:*
1173 | | ... | _None_
1174 | | ...
1175 | | ... | *Example:*
1176 | | ...
1177 | | ... | \| Initialize L2 bridge domain with IPv4 ACLs on DUT1 in 3-node \
1178 | | ... | circular topology \|
1179 | | ...
1180 | | ... | _NOTE:_ This KW uses following test case variables:
1181 | | ... | - ${dut1} - DUT1 node.
1182 | | ... | - ${dut2} - DUT2 node.
1183 | | ... | - ${dut1_if1} - DUT1 interface towards TG.
1184 | | ... | - ${dut1_if2} - DUT1 interface towards DUT2.
1185 | | ... | - ${dut2_if1} - DUT2 interface towards DUT1.
1186 | | ... | - ${dut2_if2} - DUT2 interface towards TG.
1187 | | ...
1188 | | Configure L2BD forwarding | ${dut1} | ${dut1_if1} | ${dut1_if2}
1189 | | Configure L2XC | ${dut2} | ${dut2_if1} | ${dut2_if2}
1190 | | All Vpp Interfaces Ready Wait | ${nodes}
1191 | | Configure IPv4 ACLs | ${dut1} | ${dut1_if1} | ${dut1_if2}
1192
1193 | Initialize IPv4 routing for '${ip_nr}' addresses with IPv4 ACLs on DUT1 in 3-node circular topology
1194 | | [Documentation]
1195 | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular
1196 | | ... | topology. Get the interface MAC addresses and setup ARP on all VPP
1197 | | ... | interfaces. Setup IPv4 addresses with /24 prefix on DUT-TG links and
1198 | | ... | /30 prefix on DUT1-DUT2 link. Set routing on both DUT nodes with
1199 | | ... | prefix /24 and next hops of neighbour DUT interface IPv4 address.
1200 | | ... | Apply required ACL rules to DUT1 interfaces.
1201 | | ...
1202 | | ... | *Arguments:*
1203 | | ... | - ip_nr - Number of IPs to be used. Type: integer or string
1204 | | ...
1205 | | ... | *Example:*
1206 | | ...
1207 | | ... | \| Initialize IPv4 routing for '10' addresses with IPv4 ACLs on DUT1 \
1208 | | ... | in 3-node circular topology \|
1209 | | ...
1210 | | ... | _NOTE:_ This KW uses following test case variables:
1211 | | ... | - ${dut1} - DUT1 node.
1212 | | ... | - ${dut2} - DUT2 node.
1213 | | ... | - ${dut1_if1} - DUT1 interface towards TG.
1214 | | ... | - ${dut1_if2} - DUT1 interface towards DUT2.
1215 | | ... | - ${dut2_if1} - DUT2 interface towards DUT1.
1216 | | ... | - ${dut2_if2} - DUT2 interface towards TG.
1217 | | ...
1218 | | Set Interface State | ${dut1} | ${dut1_if1} | up
1219 | | Set Interface State | ${dut1} | ${dut1_if2} | up
1220 | | Set Interface State | ${dut2} | ${dut2_if1} | up
1221 | | Set Interface State | ${dut2} | ${dut2_if2} | up
1222 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1223 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1224 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1225 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1226 | | :FOR | ${number} | IN RANGE | 2 | ${ip_nr}+2
1227 | | | Add arp on dut | ${dut1} | ${dut1_if1} | 10.10.10.${number}
1228 | | | ... | ${tg1_if1_mac}
1229 | | | Add arp on dut | ${dut2} | ${dut2_if2} | 20.20.20.${number}
1230 | | | ... | ${tg1_if2_mac}
1231 | | Add arp on dut | ${dut1} | ${dut1_if2} | 1.1.1.2 | ${dut2_if1_mac}
1232 | | Add arp on dut | ${dut2} | ${dut2_if1} | 1.1.1.1 | ${dut1_if2_mac}
1233 | | Configure IP addresses on interfaces
1234 | | ... | ${dut1} | ${dut1_if1} | 10.10.10.1 | 24
1235 | | ... | ${dut1} | ${dut1_if2} | 1.1.1.1 | 30
1236 | | ... | ${dut2} | ${dut2_if1} | 1.1.1.2 | 30
1237 | | ... | ${dut2} | ${dut2_if2} | 20.20.20.1 | 24
1238 | | Vpp Route Add | ${dut1} | 20.20.20.0 | 24 | 1.1.1.2 | ${dut1_if2}
1239 | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 1.1.1.1 | ${dut2_if1}
1240 | | All Vpp Interfaces Ready Wait | ${nodes}
1241 | | Configure IPv4 ACLs | ${dut1} | ${dut1_if1} | ${dut1_if2}
1242
1243 | Configure MACIP ACLs
1244 | | [Documentation]
1245 | | ... | Configure MACIP ACL with required number of not-hitting permit ACEs
1246 | | ... | plus two hitting ACEs for both traffic directions.
1247 | | ...
1248 | | ... | *Arguments:*
1249 | | ... | - dut_node - DUT node. Type: dictionary
1250 | | ... | - dut_if1 - DUT node interface1 name (Optional). Type: string
1251 | | ... | - dut_if2 - DUT node interface2 name (Optional). Type: string
1252 | | ...
1253 | | ... | *Example:*
1254 | | ...
1255 | | ... | \| Configure MACIP ACLs \| ${nodes['DUT1']} \| GigabitEthernet0/7/0 \
1256 | | ... | \| GigabitEthernet0/8/0 \|
1257 | | ...
1258 | | ... | _NOTE:_ This KW uses following test case variables:
1259 | | ... | - ${src_ip_start} - Source IP address start. Type: string
1260 | | ... | - ${ip_step} - IP address step. Type: string
1261 | | ... | - ${src_mac_start} - Source MAC address start in format with colons.
1262 | | ... | Type: string
1263 | | ... | - ${src_mac_step} - Source MAC address step. Type: string
1264 | | ... | - ${src_mac_mask} - Source MAC address mask. 00:00:00:00:00:00 is a
1265 | | ... | wildcard mask. Type: string
1266 | | ... | - ${no_hit_aces_number} - Number of not-hitting ACEs to be configured.
1267 | | ... | Type: integer
1268 | | ... | - ${acl_action} - Action for the rule - deny, permit, permit+reflect.
1269 | | ... | Type: string
1270 | | ... | - ${tg_stream1_subnet} - IP subnet used by TG in direction 0->1.
1271 | | ... | Type: string
1272 | | ... | - ${tg_stream2_subnet} - IP subnet used by TG in direction 1->0.
1273 | | ... | Type: string
1274 | | ... | - ${tg_stream1_mac} - Source MAC address of traffic stream 1.
1275 | | ... | Type: string
1276 | | ... | - ${tg_stream2_mac} - Source MAC address of traffic stream 2.
1277 | | ... | Type: string
1278 | | ... | - ${tg_mac_mask} - MAC address mask for traffic streams.
1279 | | ... | 00:00:00:00:00:00 is a wildcard mask. Type: string
1280 | | ...
1281 | | [Arguments] | ${dut} | ${dut_if1}=${NONE} | ${dut_if2}=${NONE}
1282 | | ...
1283 | | ${src_ip_int} = | IP To Int | ${src_ip_start}
1284 | | ${src_ip_int} = | Evaluate | ${src_ip_int} - ${ip_step}
1285 | | ...
1286 | | ${ip_limit} = | Set Variable | 255.255.255.255
1287 | | ${ip_limit_int} = | IP To Int | ${ip_limit}
1288 | | ...
1289 | | ${src_mac_int} = | Mac To Int | ${src_mac_start}
1290 | | ${src_mac_int} = | Evaluate | ${src_mac_int} - ${src_mac_step}
1291 | | ...
1292 | | ${mac_limit} = | Set Variable | ff:ff:ff:ff:ff:ff
1293 | | ${mac_limit_int} = | Mac To Int | ${mac_limit}
1294 | | ...
1295 | | ${acl}= | Set Variable | ipv4 permit
1296 | | :FOR | ${nr} | IN RANGE | 0 | ${no_hit_aces_number}
1297 | | | ${src_ip_int} = | Evaluate | ${src_ip_int} + ${ip_step}
1298 | | | ${src_mac_int} = | Evaluate | ${src_mac_int} + ${src_mac_step}
1299 | | | ${ipv4_limit_reached}= | Set Variable If
1300 | | | ... | ${src_ip_int} > ${ip_limit_int} | ${TRUE}
1301 | | | ${mac_limit_reached}= | Set Variable If
1302 | | | ... | ${src_mac_int} > ${mac_limit_int} | ${TRUE}
1303 | | | Run Keyword If | '${ipv4_limit_reached}' == '${TRUE}' | Log
1304 | | | ... | Can't do more iterations - IPv4 address limit has been reached.
1305 | | | ... | WARN
1306 | | | Run Keyword If | '${mac_limit_reached}' == '${TRUE}' | Log
1307 | | | ... | Can't do more iterations - MAC address limit has been reached.
1308 | | | ... | WARN
1309 | | | ${src_ip} = | Run Keyword If | '${ipv4_limit_reached}' == '${TRUE}'
1310 | | | ... | Set Variable | ${ip_limit}
1311 | | | ... | ELSE | Int To IP | ${src_ip_int}
1312 | | | ${src_mac}= | Run Keyword If | '${mac_limit_reached}' == '${TRUE}'
1313 | | | ... | Set Variable | ${mac_limit}
1314 | | | ... | ELSE | Int To Mac | ${src_mac_int}
1315 | | | ${acl}= | Catenate | ${acl} | ip ${src_ip}/32
1316 | | | ... | mac ${src_mac} | mask ${src_mac_mask},
1317 | | | Exit For Loop If | '${ipv4_limit_reached}' == '${TRUE}' or '${mac_limit_reached}' == '${TRUE}'
1318 | | ${acl0}= | Catenate | ${acl}
1319 | | ... | ipv4 ${acl_action} ip ${tg_stream1_subnet} mac ${tg_stream1_mac}
1320 | | ... | mask ${tg_mac_mask}
1321 | | ${acl1}= | Catenate | ${acl}
1322 | | ... | ipv4 ${acl_action} ip ${tg_stream2_subnet} mac ${tg_stream2_mac}
1323 | | ... | mask ${tg_mac_mask}
1324 | | Add Macip Acl Multi Entries | ${dut} | rules=${acl0}
1325 | | Add Macip Acl Multi Entries | ${dut} | rules=${acl1}
1326 | | ${acl_idx}= | Set Variable | 0
1327 | | Run Keyword Unless | '${dut_if1}' == '${NONE}'
1328 | | ... | Add Del Macip Acl Interface | ${dut} | ${dut_if1} | add | ${acl_idx}
1329 | | ${acl_idx}= | Set Variable | 1
1330 | | Run Keyword Unless | '${dut_if2}' == '${NONE}'
1331 | | ... | Add Del Macip Acl Interface | ${dut} | ${dut_if2} | add | ${acl_idx}
1332
1333 | Initialize L2 bridge domain with MACIP ACLs on DUT1 in 3-node circular topology
1334 | | [Documentation]
1335 | | ... | Setup L2BD topology by adding two interfaces on DUT1 into bridge
1336 | | ... | domain that is created automatically with index 1. Learning is
1337 | | ... | enabled. Interfaces are brought up. Apply required MACIP ACL rules to
1338 | | ... | DUT1 interfaces.
1339 | | ...
1340 | | ... | *Arguments:*
1341 | | ... | _None_
1342 | | ...
1343 | | ... | *Example:*
1344 | | ...
1345 | | ... | \| Initialize L2 bridge domain with MACIP ACLs on DUT1 in 3-node \
1346 | | ... | circular topology \|
1347 | | ...
1348 | | ... | _NOTE 1:_ This KW uses following test case variables:
1349 | | ... | - ${tg} - TG node.
1350 | | ... | - ${dut1} - DUT1 node.
1351 | | ... | - ${dut2} - DUT2 node.
1352 | | ... | - ${tg_if1} - TG interface towards DUT1.
1353 | | ... | - ${tg_if2} - TG interface towards DUT2.
1354 | | ... | - ${dut1_if1} - DUT1 interface towards TG.
1355 | | ... | - ${dut1_if2} - DUT1 interface towards DUT2.
1356 | | ... | - ${dut2_if1} - DUT2 interface towards DUT1.
1357 | | ... | - ${dut2_if2} - DUT2 interface towards TG.
1358 | | ...
1359 | | Configure L2BD forwarding | ${dut1} | ${dut1_if1} | ${dut1_if2}
1360 | | Configure L2XC | ${dut2} | ${dut2_if1} | ${dut2_if2}
1361 | | All Vpp Interfaces Ready Wait | ${nodes}
1362 | | Configure MACIP ACLs | ${dut1} | ${dut1_if1} | ${dut1_if2}
1363
1364 | Initialize L2 bridge domains with Vhost-User in 3-node circular topology
1365 | | [Documentation]
1366 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
1367 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
1368 | | ... | with physical inteface.
1369 | | ...
1370 | | ... | *Arguments:*
1371 | | ... | - bd_id1 - Bridge domain ID. Type: integer
1372 | | ... | - bd_id2 - Bridge domain ID. Type: integer
1373 | | ... | - sock1 - Sock path for the first Vhost-User interface. Type: string
1374 | | ... | - sock2 - Sock path for the second Vhost-User interface. Type: string
1375 | | ...
1376 | | ... | _NOTE:_ This KW uses following test case variables:
1377 | | ... | - ${dut1} - DUT1 node.
1378 | | ... | - ${dut2} - DUT2 node.
1379 | | ... | - ${dut1_if1} - DUT1 interface towards TG.
1380 | | ... | - ${dut1_if2} - DUT1 interface towards DUT2.
1381 | | ... | - ${dut2_if1} - DUT2 interface towards DUT1.
1382 | | ... | - ${dut2_if2} - DUT2 interface towards TG.
1383 | | ...
1384 | | ... | *Example:*
1385 | | ...
1386 | | ... | \| L2 bridge domains with Vhost-User initialized in a 3-node \
1387 | | ... | circular topology \| 1 \| 2 \| /tmp/sock1 \| /tmp/sock2 \|
1388 | | ...
1389 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
1390 | | ...
1391 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
1392 | | ... | ${sock1} | ${sock2} | dut1_vhost_if1 | dut1_vhost_if2
1393 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
1394 | | Add interface to bridge domain | ${dut1} | ${dut1_vhost_if1} | ${bd_id1}
1395 | | Add interface to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id2}
1396 | | Add interface to bridge domain | ${dut1} | ${dut1_vhost_if2} | ${bd_id2}
1397 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
1398 | | ... | ${sock1} | ${sock2} | dut2_vhost_if1 | dut2_vhost_if2
1399 | | Add interface to bridge domain | ${dut2} | ${dut2_if1} | ${bd_id1}
1400 | | Add interface to bridge domain | ${dut2} | ${dut2_vhost_if1} | ${bd_id1}
1401 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
1402 | | Add interface to bridge domain | ${dut2} | ${dut2_vhost_if2} | ${bd_id2}
1403
1404 | Initialize L2 bridge domains with Vhost-User for '${nr}' VMs in 3-node circular topology
1405 | | [Documentation]
1406 | | ... | Create pairs of Vhost-User interfaces for defined number of VMs on all
1407 | | ... | defined VPP nodes. Add each Vhost-User interface into L2 bridge
1408 | | ... | domains with learning enabled with physical inteface or Vhost-User
1409 | | ... | interface of another VM.
1410 | | ...
1411 | | ... | *Arguments:*
1412 | | ... | _None_
1413 | | ...
1414 | | ... | *Note:*
1415 | | ... | Socket paths for VM are defined in following format:
1416 | | ... | - /tmp/sock-${VM_ID}-1
1417 | | ... | - /tmp/sock-${VM_ID}-2
1418 | | ...
1419 | | ... | *Example:*
1420 | | ...
1421 | | ... | \| L2 bridge domains with Vhost-User for '2' VMs initialized in \
1422 | | ... | a 3-node circular topology \|
1423 | | ...
1424 | | ${bd_id2}= | Evaluate | ${nr}+1
1425 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${1}
1426 | | Add interface to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id2}
1427 | | Add interface to bridge domain | ${dut2} | ${dut2_if1} | ${1}
1428 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
1429 | | :FOR | ${number} | IN RANGE | 1 | ${nr}+1
1430 | | | ${sock1}= | Set Variable | /tmp/sock-${number}-1
1431 | | | ${sock2}= | Set Variable | /tmp/sock-${number}-2
1432 | | | Configure vhost interfaces for L2BD forwarding | ${dut1}
1433 | | | ... | ${sock1} | ${sock2} | dut1-vhost-${number}-if1
1434 | | | ... | dut1-vhost-${number}-if2
1435 | | | ${bd_id2}= | Evaluate | ${number}+1
1436 | | | Add interface to bridge domain | ${dut1}
1437 | | | ... | ${dut1-vhost-${number}-if1} | ${number}
1438 | | | Add interface to bridge domain | ${dut1}
1439 | | | ... | ${dut1-vhost-${number}-if2} | ${bd_id2}
1440 | | | Configure vhost interfaces for L2BD forwarding | ${dut2}
1441 | | | ... | ${sock1} | ${sock2} | dut2-vhost-${number}-if1
1442 | | | ... | dut2-vhost-${number}-if2
1443 | | | Add interface to bridge domain | ${dut2}
1444 | | | ... | ${dut2-vhost-${number}-if1} | ${number}
1445 | | | Add interface to bridge domain | ${dut2}
1446 | | | ... | ${dut2-vhost-${number}-if2} | ${bd_id2}
1447
1448 | Initialize L2 bridge domain with VXLANoIPv4 in 3-node circular topology
1449 | | [Documentation]
1450 | | ... | Setup L2 bridge domain topology with VXLANoIPv4 by connecting
1451 | | ... | physical and vxlan interfaces on each DUT. All interfaces are brought
1452 | | ... | up. IPv4 addresses with prefix /24 are configured on interfaces
1453 | | ... | between DUTs. VXLAN sub-interfaces has same IPv4 address as
1454 | | ... | interfaces.
1455 | | ...
1456 | | Set interfaces in path in 3-node circular topology up
1457 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2} | 172.16.0.1
1458 | | ... | 24
1459 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1} | 172.16.0.2
1460 | | ... | 24
1461 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
1462 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
1463 | | Add arp on dut | ${dut1} | ${dut1_if2} | 172.16.0.2 | ${dut2_if1_mac}
1464 | | Add arp on dut | ${dut2} | ${dut2_if1} | 172.16.0.1 | ${dut1_if2_mac}
1465 | | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | 24
1466 | | ... | 172.16.0.1 | 172.16.0.2
1467 | | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | 24
1468 | | ... | 172.16.0.2 | 172.16.0.1
1469 | | Configure L2BD forwarding | ${dut1} | ${dut1_if1} | ${dut1s_vxlan}
1470 | | Configure L2BD forwarding | ${dut2} | ${dut2_if2} | ${dut2s_vxlan}
1471 | | All Vpp Interfaces Ready Wait | ${nodes}
1472
1473 | Initialize L2 bridge domains with Vhost-User and VXLANoIPv4 in 3-node circular topology
1474 | | [Documentation]
1475 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
1476 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
1477 | | ... | with physical inteface.
1478 | | ... | Setup VXLANoIPv4 between DUTs by connecting physical and vxlan
1479 | | ... | interfaces on each DUT. All interfaces are brought up.
1480 | | ... | IPv4 addresses with prefix /24 are configured on interfaces between
1481 | | ... | DUTs. VXLAN sub-interfaces has same IPv4 address as interfaces.
1482 | | ...
1483 | | ... | *Arguments:*
1484 | | ... | - bd_id1 - Bridge domain ID. Type: integer
1485 | | ... | - bd_id2 - Bridge domain ID. Type: integer
1486 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
1487 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
1488 | | ...
1489 | | ... | *Example:*
1490 | | ...
1491 | | ... | \| L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a\
1492 | | ... | 3-node circular topology \| 1 \| 2 \| /tmp/sock1 \| /tmp/sock2 \|
1493 | | ...
1494 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
1495 | | ...
1496 | | Set interfaces in path in 3-node circular topology up
1497 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2} | 172.16.0.1
1498 | | ... | 24
1499 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1} | 172.16.0.2
1500 | | ... | 24
1501 | | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | 24
1502 | | ... | 172.16.0.1 | 172.16.0.2
1503 | | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | 24
1504 | | ... | 172.16.0.2 | 172.16.0.1
1505 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
1506 | | ... | ${sock1} | ${sock2}
1507 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
1508 | | Add interface to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
1509 | | Add interface to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
1510 | | Add interface to bridge domain | ${dut1} | ${dut1s_vxlan} | ${bd_id2}
1511 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
1512 | | ... | ${sock1} | ${sock2}
1513 | | Add interface to bridge domain | ${dut2} | ${dut2s_vxlan} | ${bd_id1}
1514 | | Add interface to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
1515 | | Add interface to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
1516 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
1517
1518 | Init L2 bridge domains with single DUT with Vhost-User and VXLANoIPv4 in 3-node circular topology
1519 | | [Documentation]
1520 | | ... | Create two Vhost-User interfaces on one VPP node. Add each
1521 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
1522 | | ... | one connected to physical interface, the other to VXLAN.
1523 | | ... | Setup VXLANoIPv4 between DUTs and TG by connecting physical and vxlan
1524 | | ... | interfaces on the DUT. All interfaces are brought up.
1525 | | ... | IPv4 addresses with prefix /24 are configured on interfaces between
1526 | | ... | DUT and TG.
1527 | | ...
1528 | | ... | *Arguments:*
1529 | | ... | - dut1_address - Address of physical interface on DUT1. Type: string
1530 | | ... | - dut1_address_subnet - Subnet of the address of physical interface on
1531 | | ... |                         DUT1. Type: string
1532 | | ... | - dut2_address - Address of physical interface on DUT2. Type: string
1533 | | ... | - dut2_address_subnet - Subnet of the address of physical interface on
1534 | | ... |                         DUT2. Type: string
1535 | | ... | - dut1_gw - Address of the _gateway_ to which the traffic will be
1536 | | ... |             forwarded on DUT1. Type: string
1537 | | ... | - dut2_gw - Address of the _gateway_ to which the traffic will be
1538 | | ... |             forwarded on DUT2. Type: string
1539 | | ... | - dut1_vxlans - List of VXLAN params to be configured on DUT1.
1540 | | ... |                 Type: list of dicts, dict params vni, vtep
1541 | | ... | - dut2_vxlans - List of VXLAN params to be configured on DUT2.
1542 | | ... |                 Type: list of dicts, dict params vni, vtep
1543 | | ... | - dut1_route_subnet - Subnet address to forward to  _gateway_ on DUT1.
1544 | | ... |                       Type: string
1545 | | ... | - dut1_route_mask - Subnet address mask to forward to  _gateway_
1546 | | ... |                     on DUT1. Type: string
1547 | | ... | - dut2_route_subnet - Subnet address to forward to  _gateway_ on DUT2.
1548 | | ... |                       Type: string
1549 | | ... | - dut2_route_mask - Subnet address mask to forward to  _gateway_
1550 | | ... |                     on DUT2. Type: string
1551 | | ...
1552 | | ... | *Example:*
1553 | | ...
1554 | | [Arguments] | ${dut1_address} | ${dut1_address_subnet} |
1555 | | ... | ${dut2_address} | ${dut2_address_subnet} | ${dut1_gw} | ${dut2_gw} |
1556 | | ... | ${dut1_vxlans} | ${dut2_vxlans} | ${dut1_route_subnet} |
1557 | | ... | ${dut1_route_mask} | ${dut2_route_subnet} | ${dut2_route_mask}
1558 | | ...
1559 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1} |
1560 | | ... | ${dut1_address} | ${dut1_address_subnet}
1561 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if2} |
1562 | | ... | ${dut2_address} | ${dut2_address_subnet}
1563 | | ${dut1_bd_id1}= | Set Variable | 1
1564 | | ${dut1_bd_id2}= | Set Variable | 2
1565 | | ${dut2_bd_id1}= | Set Variable | 1
1566 | | :FOR | ${vxlan} | IN | @{dut1_vxlans}
1567 | | | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | ${vxlan.vni}
1568 | | | ... | ${dut1_address} | ${vxlan.vtep}
1569 | | | Add interface to bridge domain | ${dut1} | ${dut1s_vxlan} | ${dut1_bd_id1}
1570 | | :FOR | ${vxlan} | IN | @{dut2_vxlans}
1571 | | | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | ${vxlan.vni}
1572 | | | ... | ${dut2_address} | ${vxlan.vtep}
1573 | | | Add interface to bridge domain | ${dut2} | ${dut2s_vxlan} | ${dut2_bd_id1}
1574 | | ${tg_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
1575 | | ${tg_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
1576 | | Add arp on dut | ${dut1} | ${dut1_if1} | ${dut1_gw} | ${tg_if1_mac}
1577 | | Add arp on dut | ${dut2} | ${dut2_if2} | ${dut2_gw} | ${tg_if2_mac}
1578 | | Vpp Route Add | ${dut1} | ${dut1_route_subnet} | ${dut1_route_mask}
1579 | | ... | ${dut1_gw} | ${dut1_if1}
1580 | | Vpp Route Add | ${dut2} | ${dut2_route_subnet} | ${dut2_route_mask}
1581 | | ... | ${dut2_gw} | ${dut2_if2}
1582 | | Add interface to bridge domain | ${dut1} | ${dut1_if2} | ${dut1_bd_id2}
1583 | | Add interface to bridge domain | ${dut2} | ${dut2_if1} | ${dut2_bd_id1}
1584 | | Add interface to bridge domain | ${dut1} | ${vhost_if1} | ${dut1_bd_id1}
1585 | | Add interface to bridge domain | ${dut1} | ${vhost_if2} | ${dut1_bd_id2}
1586
1587 | Initialize L2 bridge domains with Vhost-User in 2-node circular topology
1588 | | [Documentation]
1589 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
1590 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
1591 | | ... | with physical inteface.
1592 | | ...
1593 | | ... | *Arguments:*
1594 | | ... | - bd_id1 - Bridge domain ID. Type: integer
1595 | | ... | - bd_id2 - Bridge domain ID. Type: integer
1596 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
1597 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
1598 | | ...
1599 | | ... | *Example:*
1600 | | ...
1601 | | ... | \| L2 bridge domains with Vhost-User initialized in a 2-node \
1602 | | ... | circular topology \| 1 \| 2 \| /tmp/sock1 \| /tmp/sock2 \|
1603 | | ...
1604 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
1605 | | ...
1606 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
1607 | | ... | ${sock1} | ${sock2}
1608 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
1609 | | Add interface to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
1610 | | Add interface to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id2}
1611 | | Add interface to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
1612
1613 | Initialize L2 bridge domains with VLAN dot1q sub-interfaces in a 3-node circular topology
1614 | | [Documentation]
1615 | | ... | Setup L2 bridge domain topology with learning enabled with VLAN
1616 | | ... | between DUTs by connecting physical and vlan interfaces on each DUT.
1617 | | ... | All interfaces are brought up.
1618 | | ...
1619 | | ... | *Arguments:*
1620 | | ... | - bd_id1 - Bridge domain ID. Type: integer
1621 | | ... | - bd_id2 - Bridge domain ID. Type: integer
1622 | | ... | - subid - ID of the sub-interface to be created. Type: string
1623 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
1624 | | ...
1625 | | ... | _NOTE:_ This KW uses following test case variables:
1626 | | ... | - ${dut1} - DUT1 node.
1627 | | ... | - ${dut2} - DUT2 node.
1628 | | ... | - ${dut1_if2} - DUT1 interface towards DUT2.
1629 | | ... | - ${dut2_if1} - DUT2 interface towards DUT1.
1630 | | ...
1631 | | ... | *Example:*
1632 | | ...
1633 | | ... | \| Initialize L2 bridge domains with VLAN dot1q sub-interfaces
1634 | | ... | in a 3-node circular topology \| 1 \| 2 \| 10 \| pop-1 \|
1635 | | ...
1636 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${subid} | ${tag_rewrite}
1637 | | ...
1638 | | Set interfaces in path in 3-node circular topology up
1639 | | Initialize VLAN dot1q sub-interfaces in 3-node circular topology
1640 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
1641 | | Configure L2 tag rewrite method on interfaces
1642 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
1643 | | ... | ${tag_rewrite}
1644 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
1645 | | Add interface to bridge domain | ${dut1} | ${subif_index_1} | ${bd_id1}
1646 | | Add interface to bridge domain | ${dut2} | ${subif_index_2} | ${bd_id2}
1647 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
1648 | | All Vpp Interfaces Ready Wait | ${nodes}
1649
1650 | Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
1651 | | [Documentation]
1652 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
1653 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
1654 | | ... | with physical inteface.
1655 | | ... | Setup VLAN between DUTs. All interfaces are brought up.
1656 | | ...
1657 | | ... | *Arguments:*
1658 | | ... | - bd_id1 - Bridge domain ID. Type: integer
1659 | | ... | - bd_id2 - Bridge domain ID. Type: integer
1660 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
1661 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
1662 | | ... | - subid - ID of the sub-interface to be created. Type: string
1663 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
1664 | | ...
1665 | | ... | *Example:*
1666 | | ...
1667 | | ... | \| L2 bridge domains with Vhost-User and VLAN initialized in a 3-node\
1668 | | ... | circular topology \| 1 \| 2 \| /tmp/sock1 \| /tmp/sock2 \| 10 \
1669 | | ... | \| pop-1 \|
1670 | | ...
1671 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
1672 | | ... | ${tag_rewrite}
1673 | | ...
1674 | | Set interfaces in path in 3-node circular topology up
1675 | | Initialize VLAN dot1q sub-interfaces in 3-node circular topology
1676 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
1677 | | Configure L2 tag rewrite method on interfaces
1678 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
1679 | | ... | ${tag_rewrite}
1680 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
1681 | | ... | ${sock1} | ${sock2}
1682 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
1683 | | Add interface to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
1684 | | Add interface to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
1685 | | Add interface to bridge domain | ${dut1} | ${subif_index_1} | ${bd_id2}
1686 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
1687 | | ... | ${sock1} | ${sock2}
1688 | | Add interface to bridge domain | ${dut2} | ${subif_index_2} | ${bd_id1}
1689 | | Add interface to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
1690 | | Add interface to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
1691 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
1692
1693 | Initialize L2 bridge domains with Vhost-User and VLAN with DPDK link bonding in a 3-node circular topology
1694 | | [Documentation]
1695 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Setup VLAN
1696 | | ... | on BondEthernet interfaces between DUTs. Add one Vhost-User interface
1697 | | ... | into L2 bridge domains with learning enabled with physical interface
1698 | | ... | towards TG and other Vhost-User interface into L2 bridge domains with
1699 | | ... | learning enabled with VLAN sub-interface. All interfaces are brought
1700 | | ... | up.
1701 | | ...
1702 | | ... | *Arguments:*
1703 | | ... | - bd_id1 - Bridge domain ID. Type: integer
1704 | | ... | - bd_id2 - Bridge domain ID. Type: integer
1705 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
1706 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
1707 | | ... | - subid - ID of the sub-interface to be created. Type: string
1708 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
1709 | | ...
1710 | | ... | *Example:*
1711 | | ...
1712 | | ... | \| Initialize L2 bridge domains with Vhost-User and VLAN with DPDK\
1713 | | ... | link bonding in a 3-node circular topology \| 1 \| 2 \| /tmp/sock1 \
1714 | | ... | \| /tmp/sock2 \| 10 \| pop-1 \|
1715 | | ...
1716 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
1717 | | ... | ${tag_rewrite}
1718 | | ...
1719 | | Set interfaces in path in 3-node circular topology up
1720 | | Set Interface State | ${dut1} | ${dut1_eth_bond_if1} | up
1721 | | Set Interface State | ${dut2} | ${dut2_eth_bond_if1} | up
1722 | | Initialize VLAN dot1q sub-interfaces in 3-node circular topology
1723 | | ... | ${dut1} | ${dut1_eth_bond_if1} | ${dut2} | ${dut2_eth_bond_if1}
1724 | | ... | ${subid}
1725 | | Configure L2 tag rewrite method on interfaces
1726 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
1727 | | ... | ${tag_rewrite}
1728 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
1729 | | ... | ${sock1} | ${sock2}
1730 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
1731 | | Add interface to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
1732 | | Add interface to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
1733 | | Add interface to bridge domain | ${dut1} | ${subif_index_1} | ${bd_id2}
1734 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
1735 | | ... | ${sock1} | ${sock2}
1736 | | Add interface to bridge domain | ${dut2} | ${subif_index_2} | ${bd_id1}
1737 | | Add interface to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
1738 | | Add interface to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
1739 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
1740
1741 | Initialize L2 bridge domains with Vhost-User and VLAN with VPP link bonding in a 3-node circular topology
1742 | | [Documentation]
1743 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Create one
1744 | | ... | link bonding (BondEthernet) interface on both VPP nodes. Enslave one
1745 | | ... | physical interface towards next DUT by BondEthernet interface. Setup
1746 | | ... | VLAN on BondEthernet interfaces between DUTs. Add one Vhost-User
1747 | | ... | interface into L2 bridge domains with learning enabled with physical
1748 | | ... | interface towards TG and other Vhost-User interface into L2 bridge
1749 | | ... | domains with learning enabled with VLAN sub-interface. All interfaces
1750 | | ... | are brought up.
1751 | | ...
1752 | | ... | *Arguments:*
1753 | | ... | - bd_id1 - Bridge domain ID. Type: integer
1754 | | ... | - bd_id2 - Bridge domain ID. Type: integer
1755 | | ... | - sock1 - Sock path for first Vhost-User interface. Type: string
1756 | | ... | - sock2 - Sock path for second Vhost-User interface. Type: string
1757 | | ... | - subid - ID of the sub-interface to be created. Type: string
1758 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
1759 | | ... | - bond_mode - Link bonding mode. Type: string
1760 | | ... | - lb_mode - Load balance mode. Type: string
1761 | | ...
1762 | | ... | *Example:*
1763 | | ...
1764 | | ... | \| Initialize L2 bridge domains with Vhost-User and VLAN with VPP\
1765 | | ... | link bonding in a 3-node circular topology \| 1 \| 2 \| /tmp/sock1 \
1766 | | ... | \| /tmp/sock2 \| 10 \| pop-1 \| xor \| l34 \|
1767 | | ...
1768 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
1769 | | ... | ${tag_rewrite} | ${bond_mode} | ${lb_mode}
1770 | | ...
1771 | | Set interfaces in path in 3-node circular topology up
1772 | | ${dut1_eth_bond_if1}= | VPP Create Bond Interface | ${dut1} | ${bond_mode}
1773 | | ... | ${lb_mode}
1774 | | Set Interface State | ${dut1} | ${dut1_eth_bond_if1} | up
1775 | | VPP Enslave Physical Interface | ${dut1} | ${dut1_if2}
1776 | | ... | ${dut1_eth_bond_if1}
1777 | | ${dut2_eth_bond_if1}= | VPP Create Bond Interface | ${dut2} | ${bond_mode}
1778 | | ... | ${lb_mode}
1779 | | Set Interface State | ${dut2} | ${dut2_eth_bond_if1} | up
1780 | | VPP Enslave Physical Interface | ${dut2} | ${dut2_if1}
1781 | | ... | ${dut2_eth_bond_if1}
1782 | | VPP Show Bond Data On All Nodes | ${nodes} | details=${TRUE}
1783 | | Initialize VLAN dot1q sub-interfaces in 3-node circular topology
1784 | | ... | ${dut1} | ${dut1_eth_bond_if1} | ${dut2} | ${dut2_eth_bond_if1}
1785 | | ... | ${subid}
1786 | | Configure L2 tag rewrite method on interfaces
1787 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
1788 | | ... | ${tag_rewrite}
1789 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
1790 | | ... | ${sock1} | ${sock2}
1791 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
1792 | | Add interface to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
1793 | | Add interface to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
1794 | | Add interface to bridge domain | ${dut1} | ${subif_index_1} | ${bd_id2}
1795 | | Configure vhost interfaces for L2BD forwarding | ${dut2}
1796 | | ... | ${sock1} | ${sock2}
1797 | | Add interface to bridge domain | ${dut2} | ${subif_index_2} | ${bd_id1}
1798 | | Add interface to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
1799 | | Add interface to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
1800 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
1801
1802 | Add PCI devices to all DUTs
1803 | | [Documentation]
1804 | | ... | Add PCI devices to VPP configuration file.
1805 | | ...
1806 | | ${duts}= | Get Matches | ${nodes} | DUT*
1807 | | :FOR | ${dut} | IN | @{duts}
1808 | | | ${if1_pci}= | Get Interface PCI Addr | ${nodes['${dut}']} | ${${dut}_if1}
1809 | | | ${if2_pci}= | Get Interface PCI Addr | ${nodes['${dut}']} | ${${dut}_if2}
1810 | | | Run keyword | ${dut}.Add DPDK Dev | ${if1_pci} | ${if2_pci}
1811 | | | Set Test Variable | ${${dut}_if1_pci} | ${if1_pci}
1812 | | | Set Test Variable | ${${dut}_if2_pci} | ${if2_pci}
1813
1814 | Add single PCI device to all DUTs
1815 | | [Documentation]
1816 | | ... | Add single (first) PCI device on DUT1 and single (last) PCI device on
1817 | | ... | DUT2 to VPP configuration file.
1818 | | ...
1819 | | ${duts}= | Get Matches | ${nodes} | DUT*
1820 | | :FOR | ${dut} | IN | @{duts}
1821 | | | ${if1_pci}= | Run Keyword If | '${dut}' == 'DUT1' | Get Interface PCI Addr
1822 | | | ... | ${nodes['${dut}']} | ${${dut}_if1} | ELSE | Get Interface PCI Addr
1823 | | | ... | ${nodes['${dut}']} | ${${dut}_if2}
1824 | | | Run keyword | ${dut}.Add DPDK Dev | ${if1_pci}
1825 | | | Set Test Variable | ${${dut}_if1_pci} | ${if1_pci}
1826
1827 | Add VLAN Strip Offload switch off between DUTs in 3-node single link topology
1828 | | [Documentation]
1829 | | ... | Add VLAN Strip Offload switch off on PCI devices between DUTs to VPP
1830 | | ... | configuration file.
1831 | | ...
1832 | | Run keyword | DUT1.Add DPDK Dev Parameter | ${dut1_if2_pci}
1833 | | ... | vlan-strip-offload | off
1834 | | Run keyword | DUT2.Add DPDK Dev Parameter | ${dut2_if1_pci}
1835 | | ... | vlan-strip-offload | off
1836
1837 | Add DPDK bonded ethernet interfaces to DUTs in 3-node single link topology
1838 | | [Documentation]
1839 | | ... | Add DPDK bonded Ethernet interfaces with mode XOR and transmit policy
1840 | | ... | l34 to VPP configuration file.
1841 | | ...
1842 | | Run keyword | DUT1.Add DPDK Eth Bond Dev | 0 | 2 | l34 | ${dut1_if2_pci}
1843 | | Run keyword | DUT2.Add DPDK Eth Bond Dev | 0 | 2 | l34 | ${dut2_if1_pci}
1844
1845 | Add DPDK bonded ethernet interfaces to topology file in 3-node single link topology
1846 | | Add Bond Eth Interface | ${dut1} | ${dut1_eth_bond_if1_name}
1847 | | Add Bond Eth Interface | ${dut2} | ${dut2_eth_bond_if1_name}
1848
1849 | Configure guest VM with dpdk-testpmd connected via vhost-user
1850 | | [Documentation]
1851 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1852 | | ... | DPDK testpmd. Qemu Guest uses by default 5 cores and 2048M. Testpmd
1853 | | ... | uses 5 cores (1 main core and 4 cores dedicated to io) mem-channel=4,
1854 | | ... | txq/rxq=256, burst=64, disable-hw-vlan, disable-rss,
1855 | | ... | driver usr/lib/librte_pmd_virtio.so and fwd mode is io.
1856 | | ...
1857 | | ... | *Arguments:*
1858 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1859 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1860 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1861 | | ... | - vm_name - QemuUtil instance name. Type: string
1862 | | ... | - skip - Number of cpus which will be skipped. Type: integer
1863 | | ... | - count - Number of cpus which will be allocated for qemu.
1864 | | ... | Type: integer
1865 | | ... | - qemu_id - Qemu Id when starting more then one guest VM on DUT node.
1866 | | ... | Type: integer
1867 | | ... | - jumbo_frames - Set True if jumbo frames are used in the test.
1868 | | ... | Type: bool
1869 | | ...
1870 | | ... | *Example:*
1871 | | ...
1872 | | ... | \| Configure guest VM with dpdk-testpmd connected via vhost-user \
1873 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \| ${6} \
1874 | | ... | \| ${5} \|
1875 | | ... | \| Configure guest VM with dpdk-testpmd connected via vhost-user \
1876 | | ... | \| ${nodes['DUT1']} \| /tmp/sock-2-1 \| /tmp/sock-2-2 \| DUT1_VM2 \
1877 | | ... | \| qemu_id=${2} \|
1878 | | ...
1879 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name} | ${skip}=${6}
1880 | | ... | ${count}=${5} | ${qemu_id}=${1} | ${jumbo_frames}=${False}
1881 | | ...
1882 | | Import Library | resources.libraries.python.QemuUtils | qemu_id=${qemu_id}
1883 | | ... | WITH NAME | ${vm_name}
1884 | | ${serial_port}= | Evaluate | ${qemu_id} + ${4555}
1885 | | Run keyword | ${vm_name}.Qemu Set Serial Port | ${serial_port}
1886 | | ${ssh_fwd_port}= | Evaluate | ${qemu_id} + ${10021}
1887 | | Run keyword | ${vm_name}.Qemu Set Ssh Fwd Port | ${ssh_fwd_port}
1888 | | ${dut_numa}= | Get interfaces numa node | ${dut_node}
1889 | | ... | ${dut1_if1} | ${dut1_if2}
1890 | | ${skip_cnt}= | Evaluate | ${skip} + (${qemu_id} - 1) * ${count}
1891 | | ${qemu_cpus}= | Cpu slice of list per node | ${dut_node} | ${dut_numa}
1892 | | ... | skip_cnt=${skip_cnt} | cpu_cnt=${count} | smt_used=${False}
1893 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1894 | | ... | jumbo_frames=${jumbo_frames}
1895 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1896 | | ... | jumbo_frames=${jumbo_frames}
1897 | | ${apply_patch}= | Set Variable If | "${perf_qemu_qsz}" == "256" | ${False}
1898 | | ... | ${TRUE}
1899 | | ${perf_qemu_path}= | Set Variable If | ${apply_patch}
1900 | | ... | ${perf_qemu_path}-patch/bin/
1901 | | ... | ${perf_qemu_path}-base/bin/
1902 | | Run Keyword If | ${qemu_build} | ${vm_name}.Build QEMU | ${dut_node}
1903 | | ... | apply_patch=${apply_patch}
1904 | | Run keyword | ${vm_name}.Qemu Set Path | ${perf_qemu_path}
1905 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
1906 | | Run keyword | ${vm_name}.Qemu Set Smp | ${count} | ${count} | 1 | 1
1907 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
1908 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${perf_vm_image}
1909 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
1910 | | Run keyword | ${vm_name}.Qemu Set Affinity | @{qemu_cpus}
1911 | | Run keyword If | ${use_tuned_cfs} | ${vm_name}.Qemu Set Scheduler Policy
1912 | | ${max_pkt_len}= | Set Variable If | ${jumbo_frames} | 9000 | ${EMPTY}
1913 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x1f | eal_mem_channels=4
1914 | | ... | pmd_fwd_mode=io | pmd_disable_hw_vlan=${TRUE}
1915 | | ... | pmd_txd=${perf_qemu_qsz} | pmd_rxd=${perf_qemu_qsz}
1916 | | ... | pmd_max_pkt_len=${max_pkt_len}
1917 | | Return From Keyword | ${vm}
1918
1919 | Configure '${nr}' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
1920 | | [Documentation]
1921 | | ... | Start QEMU guests with two vhost-user interfaces and interconnecting
1922 | | ... | DPDK testpmd for defined number of VMs on all defined VPP nodes.
1923 | | ...
1924 | | ... | *Arguments:*
1925 | | ... | _None_
1926 | | ...
1927 | | ... | _NOTE:_ This KW expects following test case variables to be set:
1928 | | ... | - ${system_cpus} - Number of CPUs allocated for OS itself.
1929 | | ... | - ${vpp_cpus} - Number of CPUs allocated for VPP.
1930 | | ... | - ${vm_cpus} - Number of CPUs to be allocated per QEMU instance.
1931 | | ... | - ${jumbo_frames} - Jumbo frames are used (True) or are not used
1932 | | ... | (False) in the test.
1933 | | ...
1934 | | ... | *Example:*
1935 | | ...
1936 | | ... | \| Configure '2' guest VMs with dpdk-testpmd connected via vhost-user\
1937 | | ... | in 3-node circular topology \|
1938 | | ...
1939 | | :FOR | ${number} | IN RANGE | 1 | ${nr}+1
1940 | | | ${sock1}= | Set Variable | /tmp/sock-${number}-1
1941 | | | ${sock2}= | Set Variable | /tmp/sock-${number}-2
1942 | | | ${skip_cpus}= | Evaluate | ${vpp_cpus}+${system_cpus}
1943 | | | ${vm1}= | Configure guest VM with dpdk-testpmd connected via vhost-user
1944 | | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM${number}
1945 | | | ... | skip=${skip_cpus} | count=${vm_cpus} | qemu_id=${number}
1946 | | | ... | jumbo_frames=${jumbo_frames}
1947 | | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM${number} | ${vm1}
1948 | | | ${vm2}= | Configure guest VM with dpdk-testpmd connected via vhost-user
1949 | | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM${number}
1950 | | | ... | skip=${skip_cpus} | count=${vm_cpus} | qemu_id=${number}
1951 | | | ... | jumbo_frames=${jumbo_frames}
1952 | | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM${number} | ${vm2}
1953
1954 | Configure guest VM with dpdk-testpmd using SMT connected via vhost-user
1955 | | [Documentation]
1956 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
1957 | | ... | DPDK testpmd. Qemu Guest uses by default 5 cores and 2048M. Testpmd
1958 | | ... | uses 5 cores (1 main core and 4 cores dedicated to io) mem-channel=4,
1959 | | ... | txq/rxq=256, burst=64, disable-hw-vlan, disable-rss,
1960 | | ... | driver usr/lib/librte_pmd_virtio.so and fwd mode is io.
1961 | | ...
1962 | | ... | *Arguments:*
1963 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
1964 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
1965 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
1966 | | ... | - vm_name - QemuUtil instance name. Type: string
1967 | | ... | - skip - number of cpus which will be skipped. Type: int
1968 | | ... | - count - number of cpus which will be allocated for qemu. Type: int
1969 | | ... | - jumbo_frames - Set True if jumbo frames are used in the test.
1970 | | ... | Type: bool
1971 | | ...
1972 | | ... | *Example:*
1973 | | ...
1974 | | ... | \| Configure guest VM with dpdk-testpmd using SMT connected via \
1975 | | ... | vhost-user \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \
1976 | | ... | \| ${6} \| ${5} \|
1977 | | ...
1978 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name} | ${skip}=${6}
1979 | | ... | ${count}=${5} | ${jumbo_frames}=${False}
1980 | | ...
1981 | | Import Library | resources.libraries.python.QemuUtils
1982 | | ... | WITH NAME | ${vm_name}
1983 | | ${dut_numa}= | Get interfaces numa node | ${dut_node}
1984 | | ... | ${dut1_if1} | ${dut1_if2}
1985 | | ${qemu_cpus}= | Cpu slice of list per node | ${dut_node} | ${dut_numa}
1986 | | ... | skip_cnt=${skip} | cpu_cnt=${count} | smt_used=${TRUE}
1987 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
1988 | | ... | jumbo_frames=${jumbo_frames}
1989 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
1990 | | ... | jumbo_frames=${jumbo_frames}
1991 | | ${apply_patch}= | Set Variable If | "${perf_qemu_qsz}" == "256" | ${False}
1992 | | ... | ${TRUE}
1993 | | ${perf_qemu_path}= | Set Variable If | ${apply_patch}
1994 | | ... | ${perf_qemu_path}-patch/bin/
1995 | | ... | ${perf_qemu_path}-base/bin/
1996 | | Run Keyword If | ${qemu_build} | ${vm_name}.Build QEMU | ${dut_node}
1997 | | ... | apply_patch=${apply_patch}
1998 | | Run keyword | ${vm_name}.Qemu Set Path | ${perf_qemu_path}
1999 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
2000 | | Run keyword | ${vm_name}.Qemu Set Smp | ${count} | ${count} | 1 | 1
2001 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
2002 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${perf_vm_image}
2003 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
2004 | | Run keyword | ${vm_name}.Qemu Set Affinity | @{qemu_cpus}
2005 | | Run keyword If | ${use_tuned_cfs} | ${vm_name}.Qemu Set Scheduler Policy
2006 | | ${max_pkt_len}= | Set Variable If | ${jumbo_frames} | 9000 | ${EMPTY}
2007 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x1f | eal_mem_channels=4
2008 | | ... | pmd_fwd_mode=io | pmd_disable_hw_vlan=${TRUE}
2009 | | ... | pmd_txd=${perf_qemu_qsz} | pmd_rxd=${perf_qemu_qsz}
2010 | | ... | pmd_max_pkt_len=${max_pkt_len}
2011 | | Return From Keyword | ${vm}
2012
2013 | Configure guest VM with dpdk-testpmd-mac connected via vhost-user
2014 | | [Documentation]
2015 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
2016 | | ... | DPDK testpmd. Qemu Guest uses by default 5 cores and 2048M. Testpmd
2017 | | ... | uses 5 cores (1 main core and 4 cores dedicated to io) mem-channel=4,
2018 | | ... | txq/rxq=256, burst=64, disable-hw-vlan, disable-rss,
2019 | | ... | driver usr/lib/librte_pmd_virtio.so and fwd mode is mac rewrite.
2020 | | ...
2021 | | ... | *Arguments:*
2022 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
2023 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
2024 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
2025 | | ... | - vm_name - QemuUtil instance name. Type: string
2026 | | ... | - eth0_mac - MAC address of first Vhost interface. Type: string
2027 | | ... | - eth1_mac - MAC address of second Vhost interface. Type: string
2028 | | ... | - skip - number of cpus which will be skipped. Type: integer
2029 | | ... | - count - number of cpus which will be allocated for qemu.
2030 | | ... | Type: integer
2031 | | ... | - qemu_id - Qemu Id when starting more then one guest VM on DUT node.
2032 | | ... | Type: integer
2033 | | ... | - jumbo_frames - Set True if jumbo frames are used in the test.
2034 | | ... | Type: bool
2035 | | ...
2036 | | ... | *Example:*
2037 | | ...
2038 | | ... | \| Configure guest VM with dpdk-testpmd-mac connected via vhost-user \
2039 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \
2040 | | ... | \| 00:00:00:00:00:01 \| 00:00:00:00:00:02 \| ${6} \| ${5} \|
2041 | | ... | \| Configure guest VM with dpdk-testpmd-mac connected via vhost-user \
2042 | | ... | \| ${nodes['DUT1']} \| /tmp/sock-2-1 \| /tmp/sock-2-2 \| DUT1_VM2 \
2043 | | ... | \| 00:00:00:00:02:01 \| 00:00:00:00:02:02 \| ${6} \| ${5} \
2044 | | ... | \| qemu_id=${2} \|
2045 | | ...
2046 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
2047 | | ... | ${eth0_mac} | ${eth1_mac} | ${skip}=${6} | ${count}=${5}
2048 | | ... | ${qemu_id}=${1} | ${jumbo_frames}=${False}
2049 | | ...
2050 | | Import Library | resources.libraries.python.QemuUtils | qemu_id=${qemu_id}
2051 | | ... | WITH NAME | ${vm_name}
2052 | | ${serial_port}= | Evaluate | ${qemu_id} + ${4555}
2053 | | Run keyword | ${vm_name}.Qemu Set Serial Port | ${serial_port}
2054 | | ${ssh_fwd_port}= | Evaluate | ${qemu_id} + ${10021}
2055 | | Run keyword | ${vm_name}.Qemu Set Ssh Fwd Port | ${ssh_fwd_port}
2056 | | ${dut_numa}= | Get interfaces numa node | ${dut_node}
2057 | | ... | ${dut1_if1} | ${dut1_if2}
2058 | | ${skip_cnt}= | Evaluate | ${skip} + (${qemu_id} - 1) * ${count}
2059 | | ${qemu_cpus}= | Cpu slice of list per node | ${dut_node} | ${dut_numa}
2060 | | ... | skip_cnt=${skip_cnt} | cpu_cnt=${count} | smt_used=${False}
2061 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
2062 | | ... | jumbo_frames=${jumbo_frames}
2063 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
2064 | | ... | jumbo_frames=${jumbo_frames}
2065 | | ${apply_patch}= | Set Variable If | "${perf_qemu_qsz}" == "256" | ${False}
2066 | | ... | ${TRUE}
2067 | | ${perf_qemu_path}= | Set Variable If | ${apply_patch}
2068 | | ... | ${perf_qemu_path}-patch/bin/
2069 | | ... | ${perf_qemu_path}-base/bin/
2070 | | Run Keyword If | ${qemu_build} | ${vm_name}.Build QEMU | ${dut_node}
2071 | | ... | apply_patch=${apply_patch}
2072 | | Run keyword | ${vm_name}.Qemu Set Path | ${perf_qemu_path}
2073 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
2074 | | Run keyword | ${vm_name}.Qemu Set Smp | ${count} | ${count} | 1 | 1
2075 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
2076 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${perf_vm_image}
2077 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
2078 | | Run keyword | ${vm_name}.Qemu Set Affinity | @{qemu_cpus}
2079 | | Run keyword If | ${use_tuned_cfs} | ${vm_name}.Qemu Set Scheduler Policy
2080 | | ${max_pkt_len}= | Set Variable If | ${jumbo_frames} | 9000 | ${EMPTY}
2081 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x1f
2082 | | ... | eal_mem_channels=4 | pmd_fwd_mode=mac | pmd_eth_peer_0=0,${eth0_mac}
2083 | | ... | pmd_eth_peer_1=1,${eth1_mac} | pmd_disable_hw_vlan=${TRUE}
2084 | | ... | pmd_txd=${perf_qemu_qsz} | pmd_rxd=${perf_qemu_qsz}
2085 | | ... | pmd_max_pkt_len=${max_pkt_len}
2086 | | Return From Keyword | ${vm}
2087
2088 | Configure '${nr}' guest VMs with dpdk-testpmd-mac connected via vhost-user in 3-node circular topology
2089 | | [Documentation]
2090 | | ... | Start QEMU guests with two vhost-user interfaces and interconnecting
2091 | | ... | DPDK testpmd with fwd mode set to mac rewrite for defined number of
2092 | | ... | VMs on all defined VPP nodes.
2093 | | ...
2094 | | ... | *Arguments:*
2095 | | ... | _None_
2096 | | ...
2097 | | ... | _NOTE:_ This KW expects following test case variables to be set:
2098 | | ... | - ${system_cpus} - Number of CPUs allocated for OS itself.
2099 | | ... | - ${vpp_cpus} - Number of CPUs allocated for VPP.
2100 | | ... | - ${vm_cpus} - Number of CPUs to be allocated per QEMU instance.
2101 | | ... | - ${jumbo_frames} - Jumbo frames are used (True) or are not used
2102 | | ... | (False) in the test.
2103 | | ...
2104 | | ... | *Example:*
2105 | | ...
2106 | | ... | \| Configure '2' guest VMs with dpdk-testpmd-mac connected via vhost-user\
2107 | | ... | in 3-node circular topology \|
2108 | | ...
2109 | | :FOR | ${number} | IN RANGE | 1 | ${nr}+1
2110 | | | ${sock1}= | Set Variable | /tmp/sock-${number}-1
2111 | | | ${sock2}= | Set Variable | /tmp/sock-${number}-2
2112 | | | ${skip_cpus}= | Evaluate | ${vpp_cpus}+${system_cpus}
2113 | | | ${vm1}=
2114 | | | ... | Configure guest VM with dpdk-testpmd-mac connected via vhost-user
2115 | | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM${number}
2116 | | | ... | ${dut1-vhost-${number}-if1_mac}
2117 | | | ... | ${dut1-vhost-${number}-if2_mac} | skip=${skip_cpus}
2118 | | | ... | count=${vm_cpus} | qemu_id=${number}
2119 | | | ... | jumbo_frames=${jumbo_frames}
2120 | | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM${number} | ${vm1}
2121 | | | ${vm2}=
2122 | | | ... | Configure guest VM with dpdk-testpmd-mac connected via vhost-user
2123 | | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM${number}
2124 | | | ... | ${dut2-vhost-${number}-if1_mac}
2125 | | | ... | ${dut2-vhost-${number}-if2_mac} | skip=${skip_cpus}
2126 | | | ... | count=${vm_cpus} | qemu_id=${number}
2127 | | | ... | jumbo_frames=${jumbo_frames}
2128 | | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM${number} | ${vm2}
2129
2130 | Configure guest VM with dpdk-testpmd-mac using SMT connected via vhost-user
2131 | | [Documentation]
2132 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
2133 | | ... | DPDK testpmd. Qemu Guest uses by default 5 cores and 2048M. Testpmd
2134 | | ... | uses 5 cores (1 main core and 4 cores dedicated to io) mem-channel=4,
2135 | | ... | txq/rxq=256, burst=64, disable-hw-vlan, disable-rss,
2136 | | ... | driver usr/lib/librte_pmd_virtio.so and fwd mode is mac rewrite.
2137 | | ...
2138 | | ... | *Arguments:*
2139 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
2140 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
2141 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
2142 | | ... | - vm_name - QemuUtil instance name. Type: string
2143 | | ... | - eth0_mac - MAC address of first Vhost interface. Type: string
2144 | | ... | - eth1_mac - MAC address of second Vhost interface. Type: string
2145 | | ... | - skip - number of cpus which will be skipped. Type: int
2146 | | ... | - count - number of cpus which will be allocated for qemu. Type: int
2147 | | ... | - jumbo_frames - Set True if jumbo frames are used in the test.
2148 | | ... | Type: bool
2149 | | ...
2150 | | ... | *Example:*
2151 | | ...
2152 | | ... | \| Configure guest VM with dpdk-testpmd-mac using SMT connected via \
2153 | | ... | vhost-user \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM\
2154 | | ... | \| 00:00:00:00:00:01 \| 00:00:00:00:00:02 \| ${6} \| ${5} \|
2155 | | ...
2156 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name}
2157 | | ... | ${eth0_mac} | ${eth1_mac} | ${skip}=${6} | ${count}=${5}
2158 | | ... | ${jumbo_frames}=${False}
2159 | | ...
2160 | | Import Library | resources.libraries.python.QemuUtils
2161 | | ... | WITH NAME | ${vm_name}
2162 | | ${dut_numa}= | Get interfaces numa node | ${dut_node}
2163 | | ... | ${dut1_if1} | ${dut1_if2}
2164 | | ${qemu_cpus}= | Cpu slice of list per node | ${dut_node} | ${dut_numa}
2165 | | ... | skip_cnt=${skip} | cpu_cnt=${count} | smt_used=${TRUE}
2166 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
2167 | | ... | jumbo_frames=${jumbo_frames}
2168 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
2169 | | ... | jumbo_frames=${jumbo_frames}
2170 | | ${apply_patch}= | Set Variable If | "${perf_qemu_qsz}" == "256" | ${False}
2171 | | ... | ${TRUE}
2172 | | ${perf_qemu_path}= | Set Variable If | ${apply_patch}
2173 | | ... | ${perf_qemu_path}-patch/bin/
2174 | | ... | ${perf_qemu_path}-base/bin/
2175 | | Run Keyword If | ${qemu_build} | ${vm_name}.Build QEMU | ${dut_node}
2176 | | ... | apply_patch=${apply_patch}
2177 | | Run keyword | ${vm_name}.Qemu Set Path | ${perf_qemu_path}
2178 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
2179 | | Run keyword | ${vm_name}.Qemu Set Smp | ${count} | ${count} | 1 | 1
2180 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
2181 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${perf_vm_image}
2182 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
2183 | | Run keyword | ${vm_name}.Qemu Set Affinity | @{qemu_cpus}
2184 | | Run keyword If | ${use_tuned_cfs} | ${vm_name}.Qemu Set Scheduler Policy
2185 | | ${max_pkt_len}= | Set Variable If | ${jumbo_frames} | 9000 | ${EMPTY}
2186 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x1f
2187 | | ... | eal_mem_channels=4 | pmd_fwd_mode=mac | pmd_eth_peer_0=0,${eth0_mac}
2188 | | ... | pmd_eth_peer_1=1,${eth1_mac} | pmd_disable_hw_vlan=${TRUE}
2189 | | ... | pmd_txd=${perf_qemu_qsz} | pmd_rxd=${perf_qemu_qsz}
2190 | | ... | pmd_max_pkt_len=${max_pkt_len}
2191 | | Return From Keyword | ${vm}
2192
2193 | Configure guest VM with linux bridge connected via vhost-user
2194 | | [Documentation]
2195 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
2196 | | ... | linux bridge. Qemu Guest uses 2048M.
2197 | | ...
2198 | | ... | *Arguments:*
2199 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
2200 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
2201 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
2202 | | ... | - vm_name - QemuUtil instance name. Type: string
2203 | | ... | - skip - number of cpus which will be skipped. Type: int
2204 | | ... | - count - number of cpus which will be allocated for qemu. Type: int
2205 | | ...
2206 | | ... | *Example:*
2207 | | ...
2208 | | ... | \| Configure guest VM with linux bridge connected via vhost-user \
2209 | | ... | \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \| ${6} \
2210 | | ... | \| ${5} \|
2211 | | ...
2212 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name} | ${skip}=${6}
2213 | | ... | ${count}=${5}
2214 | | ...
2215 | | Import Library | resources.libraries.python.QemuUtils
2216 | | ... | WITH NAME | ${vm_name}
2217 | | ${dut_numa}= | Get interfaces numa node | ${dut_node}
2218 | | ... | ${dut1_if1} | ${dut1_if2}
2219 | | ${qemu_cpus}= | Cpu slice of list per node | ${dut_node} | ${dut_numa}
2220 | | ... | skip_cnt=${skip} | cpu_cnt=${count} | smt_used=${False}
2221 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
2222 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
2223 | | ${apply_patch}= | Set Variable If | "${perf_qemu_qsz}" == "256" | ${False}
2224 | | ... | ${TRUE}
2225 | | ${perf_qemu_path}= | Set Variable If | ${apply_patch}
2226 | | ... | ${perf_qemu_path}-patch/bin/
2227 | | ... | ${perf_qemu_path}-base/bin/
2228 | | Run Keyword If | ${qemu_build} | ${vm_name}.Build QEMU | ${dut_node}
2229 | | ... | apply_patch=${apply_patch}
2230 | | Run keyword | ${vm_name}.Qemu Set Path | ${perf_qemu_path}
2231 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
2232 | | Run keyword | ${vm_name}.Qemu Set Smp | ${count} | ${count} | 1 | 1
2233 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
2234 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${perf_vm_image}
2235 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
2236 | | Run keyword | ${vm_name}.Qemu Set Affinity | @{qemu_cpus}
2237 | | ${br}= | Set Variable | br0
2238 | | ${vhost1}= | Get Vhost User If Name By Sock | ${vm} | ${sock1}
2239 | | ${vhost2}= | Get Vhost User If Name By Sock | ${vm} | ${sock2}
2240 | | Linux Add Bridge | ${vm} | ${br} | ${vhost1} | ${vhost2}
2241 | | Set Interface State | ${vm} | ${vhost1} | up | if_type=name
2242 | | Set Interface State | ${vm} | ${vhost2} | up | if_type=name
2243 | | Set Interface State | ${vm} | ${br} | up | if_type=name
2244 | | Return From Keyword | ${vm}
2245
2246 | Configure guest VM with linux bridge using SMT connected via vhost-user
2247 | | [Documentation]
2248 | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting
2249 | | ... | linux bridge. Qemu Guest uses 2048M.
2250 | | ...
2251 | | ... | *Arguments:*
2252 | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary
2253 | | ... | - sock1 - Socket path for first Vhost-User interface. Type: string
2254 | | ... | - sock2 - Socket path for second Vhost-User interface. Type: string
2255 | | ... | - vm_name - QemuUtil instance name. Type: string
2256 | | ... | - skip - number of cpus which will be skipped. Type: int
2257 | | ... | - count - number of cpus which will be allocated for qemu. Type: int
2258 | | ...
2259 | | ... | *Example:*
2260 | | ...
2261 | | ... | \| Guest VM with Linux Bridge using SMT connected via vhost-user is \
2262 | | ... | setup \| ${nodes['DUT1']} \| /tmp/sock1 \| /tmp/sock2 \| DUT1_VM \
2263 | | ... | \| ${6}\| ${5} \|
2264 | | ...
2265 | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vm_name} | ${skip}=${6}
2266 | | ... | ${count}=${5}
2267 | | ...
2268 | | Import Library | resources.libraries.python.QemuUtils
2269 | | ... | WITH NAME | ${vm_name}
2270 | | ${dut_numa}= | Get interfaces numa node | ${dut_node}
2271 | | ... | ${dut1_if1} | ${dut1_if2}
2272 | | ${qemu_cpus}= | Cpu slice of list per node | ${dut_node} | ${dut_numa}
2273 | | ... | skip_cnt=${skip} | cpu_cnt=${count} | smt_used=${TRUE}
2274 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock1}
2275 | | Run keyword | ${vm_name}.Qemu Add Vhost User If | ${sock2}
2276 | | ${apply_patch}= | Set Variable If | "${perf_qemu_qsz}" == "256" | ${False}
2277 | | ... | ${TRUE}
2278 | | ${perf_qemu_path}= | Set Variable If | ${apply_patch}
2279 | | ... | ${perf_qemu_path}-patch/bin/
2280 | | ... | ${perf_qemu_path}-base/bin/
2281 | | Run Keyword If | ${qemu_build} | ${vm_name}.Build QEMU | ${dut_node}
2282 | | ... | apply_patch=${apply_patch}
2283 | | Run keyword | ${vm_name}.Qemu Set Path | ${perf_qemu_path}
2284 | | Run keyword | ${vm_name}.Qemu Set Node | ${dut_node}
2285 | | Run keyword | ${vm_name}.Qemu Set Smp | ${count} | ${count} | 1 | 1
2286 | | Run keyword | ${vm_name}.Qemu Set Mem Size | 2048
2287 | | Run keyword | ${vm_name}.Qemu Set Disk Image | ${perf_vm_image}
2288 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
2289 | | Run keyword | ${vm_name}.Qemu Set Affinity | @{qemu_cpus}
2290 | | ${br}= | Set Variable | br0
2291 | | ${vhost1}= | Get Vhost User If Name By Sock | ${vm} | ${sock1}
2292 | | ${vhost2}= | Get Vhost User If Name By Sock | ${vm} | ${sock2}
2293 | | Linux Add Bridge | ${vm} | ${br} | ${vhost1} | ${vhost2}
2294 | | Set Interface State | ${vm} | ${vhost1} | up | if_type=name
2295 | | Set Interface State | ${vm} | ${vhost2} | up | if_type=name
2296 | | Set Interface State | ${vm} | ${br} | up | if_type=name
2297 | | Return From Keyword | ${vm}
2298
2299 | Initialize LISP IPv4 forwarding in 3-node circular topology
2300 | | [Documentation] | Custom setup of IPv4 addresses on all DUT nodes and TG \
2301 | | ... | Don`t set route.
2302 | | ...
2303 | | ... | *Arguments:*
2304 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
2305 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
2306 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
2307 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
2308 | | ... | -${duts_prefix} - ip prefix. Type: int
2309 | | ...
2310 | | ... | *Return:*
2311 | | ... | - No value returned
2312 | | ...
2313 | | ... | *Example:*
2314 | | ... | \| Initialize LISP IPv4 forwarding in 3-node circular topology \
2315 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
2316 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
2317 | | ...
2318 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
2319 | | ... | ${dut2_dut1_address} | ${dut2_tg_address} | ${duts_prefix}
2320 | | ...
2321 | | Set Interface State | ${dut1} | ${dut1_if1} | up
2322 | | Set Interface State | ${dut1} | ${dut1_if2} | up
2323 | | Set Interface State | ${dut2} | ${dut2_if1} | up
2324 | | Set Interface State | ${dut2} | ${dut2_if2} | up
2325 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
2326 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
2327 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
2328 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
2329 | | Add arp on dut | ${dut1} | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
2330 | | Add arp on dut | ${dut1} | ${dut1_if2} | ${dut2_dut1_address}
2331 | | ... | ${dut2_if1_mac}
2332 | | Add arp on dut | ${dut2} | ${dut2_if1} | ${dut1_dut2_address}
2333 | | ... | ${dut1_if2_mac}
2334 | | Add arp on dut | ${dut2} | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
2335 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1}
2336 | | ... | ${dut1_tg_address} | ${duts_prefix}
2337 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2}
2338 | | ... | ${dut1_dut2_address} | ${duts_prefix}
2339 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1}
2340 | | ... | ${dut2_dut1_address} | ${duts_prefix}
2341 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if2}
2342 | | ... | ${dut2_tg_address} | ${duts_prefix}
2343 | | All Vpp Interfaces Ready Wait | ${nodes}
2344
2345 | Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
2346 | | [Documentation] | Setup Lisp GPE IPv4 forwarding over IPsec.
2347 | | ...
2348 | | ... | *Arguments:*
2349 | | ... | -${encr_alg} - Encryption algorithm. Type: string
2350 | | ... | -${auth_alg} - Authentication algorithm. Type: string
2351 | | ...
2352 | | ... | *Return:*
2353 | | ... | - No value returned
2354 | | ...
2355 | | ... | *Example:*
2356 | | ... | \| Initialize LISP GPE IPv4 over IPsec in 3-node circular topology\
2357 | | ... | \| ${encr_alg} \| ${auth_alg}
2358 | | ...
2359 | | [Arguments] | ${encr_alg} | ${auth_alg}
2360 | | ...
2361 | | Generate keys for IPSec | ${encr_alg} | ${auth_alg}
2362 | | Initialize LISP IPv4 forwarding in 3-node circular topology
2363 | | ... | ${dut1_to_dut2_ip4} | ${dut1_to_tg_ip4} | ${dut2_to_dut1_ip4}
2364 | | ... | ${dut2_to_tg_ip4} | ${prefix4}
2365 | | Configure LISP GPE topology in 3-node circular topology
2366 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
2367 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
2368 | | ... | ${duts_locator_set} | ${dut1_ip4_eid} | ${dut2_ip4_eid}
2369 | | ... | ${dut1_ip4_static_adjacency} | ${dut2_ip4_static_adjacency}
2370 | | Configure manual keyed connection for IPSec
2371 | | ... | ${dut1} | ${dut1_if2} | ${encr_alg} | ${encr_key}
2372 | | ... | ${auth_alg} | ${auth_key} | ${dut1_spi} | ${dut2_spi}
2373 | | ... | ${dut1_to_dut2_ip4} | ${dut2_to_dut1_ip4}
2374 | | Configure manual keyed connection for IPSec
2375 | | ... | ${dut2} | ${dut2_if1} | ${encr_alg} | ${encr_key}
2376 | | ... | ${auth_alg} | ${auth_key} | ${dut2_spi} | ${dut1_spi}
2377 | | ... | ${dut2_to_dut1_ip4} | ${dut1_to_dut2_ip4}
2378 | | Set interfaces in path in 3-node circular topology up
2379
2380 | Initialize LISP IPv6 forwarding in 3-node circular topology
2381 | | [Documentation] | Custom setup of IPv6 topology on all DUT nodes \
2382 | | ... | Don`t set route.
2383 | | ...
2384 | | ... | *Arguments:*
2385 | | ... | -${dut1_dut2_address} - Ip address from DUT1 to DUT2. Type: string
2386 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
2387 | | ... | -${dut2_dut1_address} - Ip address from DUT2 to DUT1. Type: string
2388 | | ... | -${dut1_tg_address} - Ip address from DUT1 to tg. Type: string
2389 | | ... | -${duts_prefix} - ip prefix. Type: int
2390 | | ...
2391 | | ... | *Return:*
2392 | | ... | - No value returned
2393 | | ...
2394 | | ... | *Example:*
2395 | | ... | \| Initialize LISP IPv6 forwarding in 3-node circular topology \
2396 | | ... | \| ${dut1_dut2_address} \| ${dut1_tg_address} \
2397 | | ... | \| ${dut2_dut1_address} \| ${dut2_tg_address} \| ${duts_prefix} \|
2398 | | ...
2399 | | [Arguments] | ${dut1_dut2_address} | ${dut1_tg_address}
2400 | | ... | ${dut2_dut1_address} | ${dut2_tg_address} | ${prefix}
2401 | | ...
2402 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
2403 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
2404 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
2405 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
2406 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_address}
2407 | | ... | ${prefix}
2408 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_address}
2409 | | ... | ${prefix}
2410 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_address}
2411 | | ... | ${prefix}
2412 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_address}
2413 | | ... | ${prefix}
2414 | | Suppress ICMPv6 router advertisement message | ${nodes}
2415 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
2416 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
2417 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_address}
2418 | | ... | ${dut2_if1_mac}
2419 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_address}
2420 | | ... | ${dut1_if2_mac}
2421
2422 | Initialize LISP IPv4 over IPv6 forwarding in 3-node circular topology
2423 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
2424 | | ... | Don`t set route.
2425 | | ...
2426 | | ... | *Arguments:*
2427 | | ... | - ${dut1_dut2_ip6_address} - IPv6 address from DUT1 to DUT2.
2428 | | ... | Type: string
2429 | | ... | - ${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
2430 | | ... | - ${dut2_dut1_ip6_address} - IPv6 address from DUT2 to DUT1.
2431 | | ... | Type: string
2432 | | ... | - ${dut1_tg_ip4_address} - IPv4 address from DUT1 to tg. Type: string
2433 | | ... | - ${prefix4} - IPv4 prefix. Type: int
2434 | | ... | - ${prefix6} - IPv6 prefix. Type: int
2435 | | ...
2436 | | ... | *Return:*
2437 | | ... | - No value returned
2438 | | ...
2439 | | ... | *Example:*
2440 | | ... | \| Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular \
2441 | | ... | topology \| ${dut1_dut2_ip6_address} \| ${dut1_tg_ip4_address} \
2442 | | ... | \| ${dut2_dut1_ip6_address} \| ${dut2_tg_ip4_address} \
2443 | | ... | \| ${prefix4} \| ${prefix6} \|
2444 | | ...
2445 | | [Arguments] | ${dut1_dut2_ip6_address} | ${dut1_tg_ip4_address}
2446 | | ... | ${dut2_dut1_ip6_address} | ${dut2_tg_ip4_address}
2447 | | ... | ${prefix4} | ${prefix6}
2448 | | ...
2449 | | Set Interface State | ${dut1} | ${dut1_if1} | up
2450 | | Set Interface State | ${dut1} | ${dut1_if2} | up
2451 | | Set Interface State | ${dut2} | ${dut2_if1} | up
2452 | | Set Interface State | ${dut2} | ${dut2_if2} | up
2453 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
2454 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
2455 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
2456 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
2457 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1}
2458 | | ... | ${dut1_tg_ip4_address} | ${prefix4}
2459 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_dut2_ip6_address}
2460 | | ... | ${prefix6}
2461 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_dut1_ip6_address}
2462 | | ... | ${prefix6}
2463 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if2}
2464 | | ... | ${dut2_tg_ip4_address} | ${prefix4}
2465 | | Suppress ICMPv6 router advertisement message | ${nodes}
2466 | | Add arp on dut | ${dut1} | ${dut1_if1} | 10.10.10.2 | ${tg1_if1_mac}
2467 | | Add arp on dut | ${dut2} | ${dut2_if2} | 20.20.20.2 | ${tg1_if2_mac}
2468 | | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_dut1_ip6_address}
2469 | | ... | ${dut2_if1_mac}
2470 | | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_dut2_ip6_address}
2471 | | ... | ${dut1_if2_mac}
2472
2473 | Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
2474 | | [Documentation] | Custom setup of IPv4 over IPv6 topology on all DUT nodes \
2475 | | ... | Don`t set route.
2476 | | ...
2477 | | ... | *Arguments:*
2478 | | ... | - ${dut1_dut2_ip4_address} - IPv4 address from DUT1 to DUT2.
2479 | | ... | Type: string
2480 | | ... | - ${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
2481 | | ... | - ${dut2_dut1_ip4_address} - IPv4 address from DUT2 to DUT1.
2482 | | ... | Type: string
2483 | | ... | - ${dut1_tg_ip6_address} - IPv6 address from DUT1 to tg. Type: string
2484 | | ... | - ${prefix4} - IPv4 prefix. Type: int
2485 | | ... | - ${prefix6} - IPv6 prefix. Type: int
2486 | | ...
2487 | | ... | *Return:*
2488 | | ... | - No value returned
2489 | | ...
2490 | | ... | *Example:*
2491 | | ... | \| Lisp IPv6 over IPv4 forwarding initialized in a 3-node circular \
2492 | | ... | topology \| ${dut1_dut2_ip4_address} \| ${dut1_tg_ip6_address} \
2493 | | ... | \| ${dut2_dut1_ip4_address} \| ${dut2_tg_ip6_address} \
2494 | | ... | \| ${prefix6} \| ${prefix4} \|
2495 | | ...
2496 | | [Arguments] | ${dut1_dut2_ip4_address} | ${dut1_tg_ip6_address}
2497 | | ... | ${dut2_dut1_ip4_address} | ${dut2_tg_ip6_address}
2498 | | ... | ${prefix6} | ${prefix4}
2499 | | ...
2500 | | Set Interface State | ${dut1} | ${dut1_if1} | up
2501 | | Set Interface State | ${dut1} | ${dut1_if2} | up
2502 | | Set Interface State | ${dut2} | ${dut2_if1} | up
2503 | | Set Interface State | ${dut2} | ${dut2_if2} | up
2504 | | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
2505 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
2506 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
2507 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
2508 | | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_tg_ip6_address}
2509 | | ... | ${prefix6}
2510 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2}
2511 | | ... | ${dut1_dut2_ip4_address} | ${prefix4}
2512 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1}
2513 | | ... | ${dut2_dut1_ip4_address} | ${prefix4}
2514 | | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_tg_ip6_address}
2515 | | ... | ${prefix6}
2516 | | Suppress ICMPv6 router advertisement message | ${nodes}
2517 | | Add Ip Neighbor | ${dut1} | ${dut1_if1} | 2001:1::2 | ${tg1_if1_mac}
2518 | | Add Ip Neighbor | ${dut2} | ${dut2_if2} | 2001:2::2 | ${tg1_if2_mac}
2519 | | Add arp on dut | ${dut1} | ${dut1_if2} | ${dut2_dut1_ip4_address}
2520 | | ... | ${dut2_if1_mac}
2521 | | Add arp on dut | ${dut2} | ${dut2_if1} | ${dut1_dut2_ip4_address}
2522 | | ... | ${dut1_if2_mac}
2523
2524 | Initialize NAT44 in 3-node circular topology
2525 | | [Documentation] | Initialization of 3-node topology with NAT44 between DUTs:
2526 | | ... | - set interfaces up
2527 | | ... | - set IP addresses
2528 | | ... | - set ARP
2529 | | ... | - create routes
2530 | | ... | - set NAT44 - only on DUT1
2531 | | ...
2532 | | Set Interface State | ${dut1} | ${dut1_if1} | up
2533 | | Set Interface State | ${dut1} | ${dut1_if2} | up
2534 | | Set Interface State | ${dut2} | ${dut2_if1} | up
2535 | | Set Interface State | ${dut2} | ${dut2_if2} | up
2536 | | All Vpp Interfaces Ready Wait | ${nodes}
2537 | | ...
2538 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if1} | 10.0.0.1 | 20
2539 | | Configure IP addresses on interfaces | ${dut1} | ${dut1_if2} | 11.0.0.1 | 20
2540 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if1} | 11.0.0.2 | 20
2541 | | Configure IP addresses on interfaces | ${dut2} | ${dut2_if2} | 12.0.0.1 | 20
2542 | | ...
2543 | | ${tg_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1}
2544 | | ${tg_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
2545 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
2546 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
2547 | | ...
2548 | | Add arp on dut | ${dut1} | ${dut1_if1} | 10.0.0.2 | ${tg_if1_mac}
2549 | | Add arp on dut | ${dut1} | ${dut1_if2} | 11.0.0.2 | ${dut2_if1_mac}
2550 | | Add arp on dut | ${dut2} | ${dut2_if1} | 11.0.0.1 | ${dut1_if2_mac}
2551 | | Add arp on dut | ${dut2} | ${dut2_if2} | 12.0.0.2 | ${tg_if2_mac}
2552 | | ...
2553 | | Vpp Route Add | ${dut1} | 12.0.0.2 | 32 | 11.0.0.2 | ${dut1_if2}
2554 | | Vpp Route Add | ${dut1} | 20.0.0.0 | 18 | 10.0.0.2 | ${dut1_if1}
2555 | | Vpp Route Add | ${dut2} | 12.0.0.0 | 24 | 12.0.0.2 | ${dut2_if2}
2556 | | Vpp Route Add | ${dut2} | 200.0.0.0 | 30 | 11.0.0.1 | ${dut2_if1}
2557 | | ...
2558 | | Configure inside and outside interfaces
2559 | | ... | ${dut1} | ${dut1_if1} | ${dut1_if2}
2560 | | Configure deterministic mode for NAT44
2561 | | ... | ${dut1} | 20.0.0.0 | 18 | 200.0.0.0 | 30
2562
2563 | Initialize L2 xconnect for '${nr}' memif pairs in 3-node circular topology
2564 | | [Documentation]
2565 | | ... | Create pairs of Memif interfaces on all defined VPP nodes. Cross
2566 | | ... | connect each Memif interface with one physical interface or virtual
2567 | | ... | interface to create a chain accross DUT node.
2568 | | ...
2569 | | ... | *Arguments:*
2570 | | ... | _None_
2571 | | ...
2572 | | ... | *Note:*
2573 | | ... | Socket paths for Memif are defined in following format:
2574 | | ... | - /tmp/memif-DUT1_VNF${number}-${sid}
2575 | | ...
2576 | | ... | KW uses test variable ${rxq_count_int} set by KW Add worker threads
2577 | | ... | and rxqueues to all DUTs
2578 | | ...
2579 | | ... | *Example:*
2580 | | ...
2581 | | ... | \| Initialize L2 xconnect for 1 memif pairs in 3-node circular \
2582 | | ... | topology \|
2583 | | ...
2584 | | Set Interface State | ${dut1} | ${dut1_if1} | up
2585 | | Set Interface State | ${dut1} | ${dut1_if2} | up
2586 | | Set Interface State | ${dut2} | ${dut2_if1} | up
2587 | | Set Interface State | ${dut2} | ${dut2_if2} | up
2588 | | :FOR | ${number} | IN RANGE | 1 | ${nr}+1
2589 | | | ${sock1}= | Set Variable | memif-DUT1_VNF
2590 | | | ${sock2}= | Set Variable | memif-DUT1_VNF
2591 | | | ${prev_index}= | Evaluate | ${number}-1
2592 | | | Set up memif interfaces on DUT node | ${dut1}
2593 | | | ... | ${sock1} | ${sock2} | ${number} | dut1-memif-${number}-if1
2594 | | | ... | dut1-memif-${number}-if2 | ${rxq_count_int} | ${rxq_count_int}
2595 | | | ${dut1_xconnect_if1}= | Set Variable If | ${number}==1 | ${dut1_if1}
2596 | | | ... | ${dut1-memif-${prev_index}-if2}
2597 | | | Configure L2XC | ${dut1} | ${dut1_xconnect_if1}
2598 | | | ... | ${dut1-memif-${number}-if1}
2599 | | | ${sock1}= | Set Variable | memif-DUT2_VNF
2600 | | | ${sock2}= | Set Variable | memif-DUT2_VNF
2601 | | | Set up memif interfaces on DUT node | ${dut2}
2602 | | | ... | ${sock1} | ${sock2} | ${number} | dut2-memif-${number}-if1
2603 | | | ... | dut2-memif-${number}-if2 | ${rxq_count_int} | ${rxq_count_int}
2604 | | | ${dut2_xconnect_if1}= | Set Variable If | ${number}==1 | ${dut2_if1}
2605 | | | ... | ${dut2-memif-${prev_index}-if2}
2606 | | | Configure L2XC | ${dut2} | ${dut2_xconnect_if1}
2607 | | | ... | ${dut2-memif-${number}-if1}
2608 | | | Run Keyword If | ${number}==${nr} | Configure L2XC
2609 | | | ... | ${dut1} | ${dut1-memif-${number}-if2} | ${dut1_if2}
2610 | | | Run Keyword If | ${number}==${nr} | Configure L2XC
2611 | | | ... | ${dut2} | ${dut2-memif-${number}-if2} | ${dut2_if2}
2612 | | All Vpp Interfaces Ready Wait | ${nodes}
2613 | | Show Memif on all DUTs | ${nodes}
2614
2615 | Initialize L2 Bridge Domain for '${nr}' memif pairs in 3-node circular topology
2616 | | [Documentation]
2617 | | ... | Create pairs of Memif interfaces on all defined VPP nodes. Put each
2618 | | ... | Memif interface to separate L2 bridge domain with one physical or
2619 | | ... | virtual interface to create a chain accross DUT node.
2620 | | ...
2621 | | ... | *Arguments:*
2622 | | ... | _None_
2623 | | ...
2624 | | ... | *Note:*
2625 | | ... | Socket paths for Memif are defined in following format:
2626 | | ... | - /tmp/memif-DUT1_VNF${number}-${sid}
2627 | | ...
2628 | | ... | *Example:*
2629 | | ...
2630 | | ... | \| Initialize L2 Bridge Domain for '1' memif pairs in 3-node circular\
2631 | | ... | topology \|
2632 | | ...
2633 | | ${bd_id2}= | Evaluate | ${nr}+1
2634 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${1}
2635 | | Add interface to bridge domain | ${dut1} | ${dut1_if2} | ${bd_id2}
2636 | | Add interface to bridge domain | ${dut2} | ${dut2_if1} | ${1}
2637 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
2638 | | :FOR | ${number} | IN RANGE | 1 | ${nr}+1
2639 | | | ${sock1}= | Set Variable | memif-DUT1_VNF
2640 | | | ${sock2}= | Set Variable | memif-DUT1_VNF
2641 | | | Set up memif interfaces on DUT node | ${dut1}
2642 | | | ... | ${sock1} | ${sock2} | ${number} | dut1-memif-${number}-if1
2643 | | | ... | dut1-memif-${number}-if2 | ${rxq_count_int} | ${rxq_count_int}
2644 | | | ${bd_id2}= | Evaluate | ${number}+1
2645 | | | Add interface to bridge domain | ${dut1}
2646 | | | ... | ${dut1-memif-${number}-if1} | ${number}
2647 | | | Add interface to bridge domain | ${dut1}
2648 | | | ... | ${dut1-memif-${number}-if2} | ${bd_id2}
2649 | | | ${sock1}= | Set Variable | memif-DUT2_VNF
2650 | | | ${sock2}= | Set Variable | memif-DUT2_VNF
2651 | | | Set up memif interfaces on DUT node | ${dut2}
2652 | | | ... | ${sock1} | ${sock2} | ${number} | dut2-memif-${number}-if1
2653 | | | ... | dut2-memif-${number}-if2 | ${rxq_count_int} | ${rxq_count_int}
2654 | | | Add interface to bridge domain | ${dut2}
2655 | | | ... | ${dut2-memif-${number}-if1} | ${number}
2656 | | | Add interface to bridge domain | ${dut2}
2657 | | | ... | ${dut2-memif-${number}-if2} | ${bd_id2}
2658 | | All Vpp Interfaces Ready Wait | ${nodes}
2659 | | Show Memif on all DUTs | ${nodes}
2660
2661 | Initialize L2 xconnect for single memif in 3-node circular topology
2662 | | [Documentation]
2663 | | ... | Create single Memif interface on all defined VPP nodes. Cross
2664 | | ... | connect Memif interface with one physical interface.
2665 | | ...
2666 | | ... | *Arguments:*
2667 | | ... | - ${number} - Memif ID. Type: integer
2668 | | ...
2669 | | ... | *Note:*
2670 | | ... | Socket paths for Memif are defined in following format:
2671 | | ... | - /tmp/memif-DUT1_VNF${number}-${sid}
2672 | | ...
2673 | | ... | KW uses test variable ${rxq_count_int} set by KW Add worker threads
2674 | | ... | and rxqueues to all DUTs
2675 | | ...
2676 | | ... | *Example:*
2677 | | ...
2678 | | ... | \| Initialize L2 xconnect for single memif in 3-node circular \
2679 | | ... | topology \| 1 \|
2680 | | ...
2681 | | [Arguments] | ${number}=${1}
2682 | | ${sock}= | Set Variable | memif-DUT1_VNF
2683 | | Set up single memif interface on DUT node | ${dut1} | ${sock}
2684 | | ... | ${number} | dut1-memif-${number}-if1 | ${rxq_count_int}
2685 | | ... | ${rxq_count_int}
2686 | | Configure L2XC | ${dut1} | ${dut1_if1} | ${dut1-memif-${number}-if1}
2687 | | ${sock}= | Set Variable | memif-DUT2_VNF
2688 | | Set up single memif interface on DUT node | ${dut2} | ${sock}
2689 | | ... | ${number} | dut2-memif-${number}-if1 | ${rxq_count_int}
2690 | | ... | ${rxq_count_int}
2691 | | Configure L2XC | ${dut2} | ${dut2_if2} | ${dut2-memif-${number}-if1}
2692 | | All Vpp Interfaces Ready Wait | ${nodes}
2693 | | Show Memif on all DUTs | ${nodes}
2694
2695 | Initialize L2 Bridge Domain for single memif in 3-node circular topology
2696 | | [Documentation]
2697 | | ... | Create single Memif interface on all defined VPP nodes. Put Memif
2698 | | ... | interface to separate L2 bridge domain with one physical interface.
2699 | | ...
2700 | | ... | *Arguments:*
2701 | | ... | - ${number} - Memif ID. Type: integer
2702 | | ...
2703 | | ... | *Note:*
2704 | | ... | Socket paths for Memif are defined in following format:
2705 | | ... | - /tmp/memif-DUT1_VNF${number}-${sid}
2706 | | ...
2707 | | ... | KW uses test variable ${rxq_count_int} set by KW Add worker threads
2708 | | ... | and rxqueues to all DUTs
2709 | | ...
2710 | | ... | *Example:*
2711 | | ...
2712 | | ... | \| Initialize L2 Bridge Domain for single memif in 3-node circular \
2713 | | ... | topology \| 1 \|
2714 | | ...
2715 | | [Arguments] | ${number}=${1}
2716 | | ${sock}= | Set Variable | memif-DUT1_VNF
2717 | | Set up single memif interface on DUT node | ${dut1} | ${sock}
2718 | | ... | ${number} | dut1-memif-${number}-if1 | ${rxq_count_int}
2719 | | ... | ${rxq_count_int}
2720 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${number}
2721 | | Add interface to bridge domain | ${dut1} | ${dut1-memif-${number}-if1}
2722 | | ... | ${number}
2723 | | ${sock}= | Set Variable | memif-DUT2_VNF
2724 | | Set up single memif interface on DUT node | ${dut2} | ${sock}
2725 | | ... | ${number} | dut2-memif-${number}-if1 | ${rxq_count_int}
2726 | | ... | ${rxq_count_int}
2727 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${number}
2728 | | Add interface to bridge domain | ${dut2} | ${dut2-memif-${number}-if1}
2729 | | ... | ${number}
2730 | | All Vpp Interfaces Ready Wait | ${nodes}
2731 | | Show Memif on all DUTs | ${nodes}