7ca190e5d0b115aad1d7596cc2f32ee69998e13c
[csit.git] / resources / libraries / robot / l2 / l2_bridge_domain.robot
1 # Copyright (c) 2020 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Library | resources.libraries.python.L2Util
16 | Library | resources.libraries.python.InterfaceUtil
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.VhostUser
19 | Library | resources.libraries.python.Memif
20
21 *** Keywords ***
22 | Show Bridge Domain Data On All DUTs
23 | | [Documentation] | Show Bridge Domain data on all DUTs.
24 | |
25 | | FOR | ${dut} | IN | @{duts}
26 | | | VPP Get Bridge Domain Data | ${nodes['${dut}']}
27 | | END
28
29 | Create bridge domain
30 | | [Documentation]
31 | | ... | Create bridge domain on given VPP node with defined learning status.
32 | |
33 | | ... | *Arguments:*
34 | | ... | - ${dut_node} - DUT node. Type: dictionary
35 | | ... | - ${bd_id} - Bridge domain ID. Type: integer
36 | | ... | - ${learn} - Enable/disable MAC learn. Type: boolean, \
37 | | ... | default value: ${TRUE}
38 | |
39 | | ... | *Example:*
40 | |
41 | | ... | \| Create bridge domain \| ${nodes['DUT1']} \| 2 \|
42 | | ... | \| Create bridge domain \| ${nodes['DUT1']} \| 5 \
43 | | ... | \| learn=${FALSE} \|
44 | |
45 | | [Arguments] | ${dut_node} | ${bd_id} | ${learn}=${TRUE}
46 | |
47 | | Create L2 BD | ${dut_node} | ${bd_id} | learn=${learn}
48
49 | Add interface to bridge domain
50 | | [Documentation]
51 | | ... | Set given interface admin state to up and add this
52 | | ... | interface to required L2 bridge domain on defined VPP node.
53 | |
54 | | ... | *Arguments:*
55 | | ... | - ${dut_node} - DUT node. Type: dictionary
56 | | ... | - ${dut_if} - DUT node interface name. Type: string
57 | | ... | - ${bd_id} - Bridge domain ID. Type: integer
58 | | ... | - ${shg} - Split-horizon group ID. Type: integer, default value: 0
59 | |
60 | | ... | *Example:*
61 | |
62 | | ... | \| Add interface to bridge domain \| ${nodes['DUT2']} \
63 | | ... | \| GigabitEthernet0/8/0 \| 3 \|
64 | |
65 | | [Arguments] | ${dut_node} | ${dut_if} | ${bd_id} | ${shg}=0
66 | |
67 | | Set Interface State | ${dut_node} | ${dut_if} | up
68 | | Add Interface To L2 BD | ${dut_node} | ${dut_if} | ${bd_id} | ${shg}
69
70 | Initialize L2 bridge domain on node
71 | | [Documentation]
72 | | ... | Setup L2 bridge domain topology by adding two interfaces on DUT into
73 | | ... | separate bridge domains that are created automatically starting with
74 | | ... | index 1. Learning is enabled. Interfaces are brought up.
75 | |
76 | | ... | *Arguments:*
77 | | ... | - dut - DUT node. Type: string
78 | | ... | - count - Number of bridge domains interfaces. Type: integer
79 | |
80 | | ... | *Example:*
81 | |
82 | | ... | \| Initialize L2 bridge domain on node \| DUT1 \| 1 \|
83 | |
84 | | [Arguments] | ${dut} | ${count}=${1}
85 | |
86 | | FOR | ${id} | IN RANGE | 1 | ${count} + 1
87 | | | ${dut_str}= | Convert To Lowercase | ${dut}
88 | | | Add Interface To L2 BD
89 | | | ... | ${nodes['${dut}']} | ${${dut_str}_${prev_layer}_${id}_1} | ${id}
90 | | | Add Interface To L2 BD
91 | | | ... | ${nodes['${dut}']} | ${${dut_str}_${prev_layer}_${id}_2} | ${id}
92 | | END
93
94 | Initialize L2 bridge domain
95 | | [Documentation]
96 | | ... | Setup L2 bridge domain topology by adding two interfaces on each DUT
97 | | ... | into separate bridge domains that are created automatically starting
98 | | ... | with index 1. Learning is enabled. Interfaces are brought up.
99 | |
100 | | ... | *Arguments:*
101 | | ... | - count - Number of bridge domains. Type: integer
102 | |
103 | | ... | *Example:*
104 | |
105 | | ... | \| Initialize L2 bridge domain \| 1 \|
106 | |
107 | | [Arguments] | ${count}=${1}
108 | |
109 | | FOR | ${dut} | IN | @{duts}
110 | | | Initialize L2 bridge domain on node | ${dut} | count=${count}
111 | | END
112
113 | Initialize L2 bridge domains with Vhost-User on node
114 | | [Documentation]
115 | | ... | Create pairs of Vhost-User interfaces for defined number of VMs on
116 | | ... | defined VPP node. Add each Vhost-User interface into L2 bridge
117 | | ... | domains with learning enabled with physical inteface or Vhost-User
118 | | ... | interface of another VM.
119 | |
120 | | ... | *Arguments:*
121 | | ... | - dut - DUT node. Type: string
122 | | ... | - nf_chain - NF chain. Type: integer
123 | | ... | - nf_nodes - Number of NFs nodes per chain. Type: integer
124 | |
125 | | ... | *Note:*
126 | | ... | Socket paths for VM are defined in following format:
127 | | ... | - /var/run/vpp/sock-\${VM_ID}-1
128 | | ... | - /var/run/vpp/sock-\${VM_ID}-2
129 | |
130 | | ... | *Example:*
131 | |
132 | | ... | \| Initialize L2 bridge domains with Vhost-User on node \| DUT1 \
133 | | ... | \| 1 \| 1 \|
134 | |
135 | | [Arguments] | ${dut} | ${nf_chain}=${1} | ${nf_nodes}=${1}
136 | |
137 | | ${bd_id1}= | Evaluate | ${nf_nodes} * (${nf_chain} - 1) + ${nf_chain}
138 | | ${bd_id2}= | Evaluate | ${nf_nodes} * ${nf_chain} + ${nf_chain}
139 | | ${dut_str}= | Convert To Lowercase | ${dut}
140 | | Add interface to bridge domain
141 | | ... | ${nodes['${dut}']} | ${${dut_str}_${prev_layer}_${nf_chain}_1}
142 | | ... | ${bd_id1}
143 | | Add interface to bridge domain
144 | | ... | ${nodes['${dut}']} | ${${dut_str}_${prev_layer}_${nf_chain}_2}
145 | | ... | ${bd_id2}
146 | | FOR | ${nf_node} | IN RANGE | 1 | ${nf_nodes} + 1
147 | | | ${qemu_id}= | Evaluate | (${nf_chain} - ${1}) * ${nf_nodes} + ${nf_node}
148 | | | Configure vhost interfaces
149 | | | ... | ${nodes['${dut}']}
150 | | | ... | /var/run/vpp/sock-${qemu_id}-1 | /var/run/vpp/sock-${qemu_id}-2
151 | | | ... | ${dut}-vhost-${qemu_id}-if1 | ${dut}-vhost-${qemu_id}-if2
152 | | | ${bd_id1}= | Evaluate | ${qemu_id} + (${nf_chain} - 1)
153 | | | ${bd_id2}= | Evaluate | ${bd_id1} + 1
154 | | | Add interface to bridge domain
155 | | | ... | ${nodes['${dut}']} | ${${dut}-vhost-${qemu_id}-if1} | ${bd_id1}
156 | | | Add interface to bridge domain
157 | | | ... | ${nodes['${dut}']} | ${${dut}-vhost-${qemu_id}-if2} | ${bd_id2}
158 | | END
159
160 | Initialize L2 bridge domains with Vhost-User
161 | | [Documentation]
162 | | ... | Create pairs of Vhost-User interfaces for defined number of VNF nodes
163 | | ... | on all defined VPP nodes. Add each Vhost-User interface into L2 bridge
164 | | ... | domains with learning enabled with physical inteface or Vhost-User
165 | | ... | interface of another VM.
166 | |
167 | | ... | *Arguments:*
168 | | ... | - nf_chain - NF chain. Type: integer
169 | | ... | - nf_nodes - Number of NFs nodes per chain. Type: integer
170 | |
171 | | ... | *Example:*
172 | |
173 | | ... | \| Initialize L2 bridge domains with Vhost-User \| 1 \| 1 \|
174 | |
175 | | [Arguments] | ${nf_chain}=${1} | ${nf_nodes}=${1}
176 | |
177 | | FOR | ${dut} | IN | @{duts}
178 | | | Initialize L2 bridge domains with Vhost-User on node
179 | | | ... | ${dut} | nf_chain=${nf_chain} | nf_nodes=${nf_nodes}
180 | | END
181
182 | Initialize L2 bridge domains for multiple chains with Vhost-User
183 | | [Documentation]
184 | | ... | Create pairs of Vhost-User interfaces for defined number of NF chains
185 | | ... | with defined number of VNF nodes on all defined VPP nodes. Add each
186 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
187 | | ... | with physical inteface or Vhost-User interface of another VM.
188 | | ... | Put all interfaces in path up.
189 | |
190 | | ... | *Arguments:*
191 | | ... | - nf_chains - Number of chains of NFs. Type: integer
192 | | ... | - nf_nodes - Number of NFs nodes per chain. Type: integer
193 | | ... | - start - Id of first chain, allows to add chains during test.
194 | | ... |     Type: integer
195 | |
196 | | ... | *Example:*
197 | |
198 | | ... | \| Initialize L2 bridge domains for multiple chains with Vhost-User \
199 | | ... | \| 3 \| 1 \| 2 \|
200 | |
201 | | [Arguments] | ${nf_chains}=${1} | ${nf_nodes}=${1} | ${start}=${1}
202 | |
203 | | Set interfaces in path up
204 | | FOR | ${nf_chain} | IN RANGE | ${start} | ${nf_chains} + 1
205 | | | Initialize L2 bridge domains with Vhost-User
206 | | | ... | nf_chain=${nf_chain} | nf_nodes=${nf_nodes}
207 | | END
208
209 | Initialize L2 bridge domain with VXLANoIPv4 in 3-node circular topology
210 | | [Documentation]
211 | | ... | Setup L2 bridge domain topology with VXLANoIPv4 by connecting
212 | | ... | physical and vxlan interfaces on each DUT. All interfaces are brought
213 | | ... | up. IPv4 addresses with prefix /24 are configured on interfaces
214 | | ... | between DUTs. VXLAN sub-interfaces has same IPv4 address as
215 | | ... | interfaces.
216 | |
217 | | Set interfaces in path up
218 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if2} | 172.16.0.1
219 | | ... | 24
220 | | VPP Interface Set IP Address | ${dut2} | ${dut2_if1} | 172.16.0.2
221 | | ... | 24
222 | | VPP Add IP Neighbor | ${dut1} | ${dut1_if2} | 172.16.0.2 | ${dut2_if1_mac}
223 | | VPP Add IP Neighbor | ${dut2} | ${dut2_if1} | 172.16.0.1 | ${dut1_if2_mac}
224 | | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | 24
225 | | ... | 172.16.0.1 | 172.16.0.2
226 | | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | 24
227 | | ... | 172.16.0.2 | 172.16.0.1
228 | | VPP Add L2 Bridge Domain | ${dut1} | ${1} | ${dut1_if1} | ${dut1s_vxlan}
229 | | Set Interface State | ${dut1} | ${dut1s_vxlan} | up
230 | | VPP Add L2 Bridge Domain | ${dut2} | ${1} | ${dut2_if2} | ${dut2s_vxlan}
231 | | Set Interface State | ${dut2} | ${dut2s_vxlan} | up
232
233 | Initialize L2 bridge domain with VLAN and VXLANoIPv4 in 3-node circular topology
234 | | [Documentation]
235 | | ... | Setup L2 bridge domain topology with VLAN and VXLANoIPv4 by connecting
236 | | ... | pairs of VLAN sub-interface and VXLAN interface to separate L2 bridge
237 | | ... | domain on each DUT. All interfaces are brought up. IPv4 addresses
238 | | ... | with prefix /32 are configured on interfaces between DUTs. VXLAN
239 | | ... | sub-interfaces has same IPv4 address as interfaces.
240 | |
241 | | ... | *Arguments:*
242 | | ... | - vxlan_count - VXLAN count. Type: integer
243 | |
244 | | ... | *Example:*
245 | |
246 | | ... | \| Initialize L2 bridge domain with VLAN and VXLANoIPv4 in 3-node \
247 | | ... | \| circular topology \| ${1} \|
248 | |
249 | | [Arguments] | ${vxlan_count}=${1}
250 | |
251 | | Set interfaces in path up
252 | |
253 | | ${bd_id_start}= | Set Variable | ${1}
254 | | ${vni_start} = | Set Variable | ${20}
255 | |
256 | | ${ip_step} = | Set Variable | ${2}
257 | | ${dut1_ip_start}= | Set Variable | 172.16.0.1
258 | | ${dut2_ip_start}= | Set Variable | 172.16.0.2
259 | |
260 | | Vpp create multiple VXLAN IPv4 tunnels | node=${dut1}
261 | | ... | node_vxlan_if=${dut1_if2} | node_vlan_if=${dut1_if1}
262 | | ... | op_node=${dut2} | op_node_if=${dut2_if1} | n_tunnels=${vxlan_count}
263 | | ... | vni_start=${vni_start} | src_ip_start=${dut1_ip_start}
264 | | ... | dst_ip_start=${dut2_ip_start} | ip_step=${ip_step}
265 | | ... | bd_id_start=${bd_id_start}
266 | | Vpp create multiple VXLAN IPv4 tunnels | node=${dut2}
267 | | ... | node_vxlan_if=${dut2_if1} | node_vlan_if=${dut2_if2}
268 | | ... | op_node=${dut1} | op_node_if=${dut1_if2} | n_tunnels=${vxlan_count}
269 | | ... | vni_start=${vni_start} | src_ip_start=${dut2_ip_start}
270 | | ... | dst_ip_start=${dut1_ip_start} | ip_step=${ip_step}
271 | | ... | bd_id_start=${bd_id_start}
272
273 | Initialize L2 bridge domains with Vhost-User and VXLANoIPv4 in 3-node circular topology
274 | | [Documentation]
275 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
276 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
277 | | ... | with physical inteface.
278 | | ... | Setup VXLANoIPv4 between DUTs by connecting physical and vxlan
279 | | ... | interfaces on each DUT. All interfaces are brought up.
280 | | ... | IPv4 addresses with prefix /24 are configured on interfaces between
281 | | ... | DUTs. VXLAN sub-interfaces has same IPv4 address as interfaces.
282 | |
283 | | ... | *Arguments:*
284 | | ... | - bd_id1 - Bridge domain ID. Type: integer
285 | | ... | - bd_id2 - Bridge domain ID. Type: integer
286 | |
287 | | ... | *Example:*
288 | |
289 | | ... | \| L2 bridge domains with Vhost-User and VXLANoIPv4 initialized in a\
290 | | ... | 3-node circular topology \| 1 \| 2 \|
291 | |
292 | | [Arguments] | ${bd_id1} | ${bd_id2}
293 | |
294 | | VPP Interface Set IP Address | ${dut1} | ${dut1_if2} | 172.16.0.1
295 | | ... | 24
296 | | VPP Interface Set IP Address | ${dut2} | ${dut2_if1} | 172.16.0.2
297 | | ... | 24
298 | | Set interfaces in path up
299 | | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | 24
300 | | ... | 172.16.0.1 | 172.16.0.2
301 | | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | 24
302 | | ... | 172.16.0.2 | 172.16.0.1
303 | | Configure vhost interfaces | ${dut1}
304 | | ... | /var/run/vpp/sock-1-${bd_id1} | /var/run/vpp/sock-1-${bd_id2}
305 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
306 | | Add interface to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
307 | | Add interface to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
308 | | Add interface to bridge domain | ${dut1} | ${dut1s_vxlan} | ${bd_id2}
309 | | Configure vhost interfaces | ${dut2}
310 | | ... | /var/run/vpp/sock-1-${bd_id1} | /var/run/vpp/sock-1-${bd_id2}
311 | | Add interface to bridge domain | ${dut2} | ${dut2s_vxlan} | ${bd_id1}
312 | | Add interface to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
313 | | Add interface to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
314 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
315
316 | Initialize L2 bridge domains with VLAN dot1q sub-interfaces in circular topology
317 | | [Documentation]
318 | | ... | Setup L2 bridge domain topology with learning enabled with VLAN by
319 | | ... | connecting physical and vlan interfaces on each DUT. In case of 3-node
320 | | ... | topology create VLAN sub-interfaces between DUTs. In case of 2-node
321 | | ... | topology create VLAN sub-interface on dut1-if2 interface. All
322 | | ... | interfaces are brought up.
323 | |
324 | | ... | *Arguments:*
325 | | ... | - bd_id1 - Bridge domain ID. Type: integer
326 | | ... | - bd_id2 - Bridge domain ID. Type: integer
327 | | ... | - subid - ID of the sub-interface to be created. Type: string
328 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
329 | |
330 | | ... | _NOTE:_ This KW uses following test case variables:
331 | | ... | - dut1 - DUT1 node.
332 | | ... | - dut2 - DUT2 node.
333 | | ... | - dut1_if2 - DUT1 interface towards DUT2.
334 | | ... | - dut2_if1 - DUT2 interface towards DUT1.
335 | |
336 | | ... | *Example:*
337 | |
338 | | ... | \| Initialize L2 bridge domains with VLAN dot1q sub-interfaces
339 | | ... | in a 3-node circular topology \| 1 \| 2 \| 10 \| pop-1 \|
340 | |
341 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${subid} | ${tag_rewrite}
342 | |
343 | | ${dut2_status} | ${value}= | Run Keyword And Ignore Error
344 | | ... | Variable Should Exist | ${dut2}
345 | |
346 | | Set interfaces in path up
347 | |
348 | | Run Keyword If | '${dut2_status}' == 'PASS'
349 | | ... | Initialize VLAN dot1q sub-interfaces in circular topology
350 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
351 | | ... | ELSE | Initialize VLAN dot1q sub-interfaces in circular topology
352 | | ... | ${dut1} | ${dut1_if2} | SUB_ID=${subid}
353 | | Run Keyword If | '${dut2_status}' == 'PASS'
354 | | ... | Configure L2 tag rewrite method on interfaces | ${dut1}
355 | | ... | ${subif_index_1} | ${dut2} | ${subif_index_2} | ${tag_rewrite}
356 | | ... | ELSE | Configure L2 tag rewrite method on interfaces
357 | | ... | ${dut1} | ${subif_index_1} | TAG_REWRITE_METHOD=${tag_rewrite}
358 | |
359 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
360 | | Add interface to bridge domain | ${dut1} | ${subif_index_1} | ${bd_id1}
361 | | Run Keyword If | '${dut2_status}' == 'PASS'
362 | | ... | Add interface to bridge domain | ${dut2} | ${subif_index_2}
363 | | ... | ${bd_id2}
364 | | Run Keyword If | '${dut2_status}' == 'PASS'
365 | | ... | Add interface to bridge domain | ${dut2} | ${dut2_if2}
366 | | ... | ${bd_id2}
367
368 | Initialize L2 bridge domains with Vhost-User and VLAN in circular topology
369 | | [Documentation]
370 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Add each
371 | | ... | Vhost-User interface into L2 bridge domains with learning enabled
372 | | ... | with physical inteface. In case of 3-node topology create VLAN
373 | | ... | sub-interfaces between DUTs. In case of 2-node topology create VLAN
374 | | ... | sub-interface on dut1-if2 interface. All interfaces are brought up.
375 | |
376 | | ... | *Arguments:*
377 | | ... | - bd_id1 - Bridge domain ID. Type: integer
378 | | ... | - bd_id2 - Bridge domain ID. Type: integer
379 | | ... | - subid - ID of the sub-interface to be created. Type: string
380 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
381 | |
382 | | ... | *Example:*
383 | |
384 | | ... | \| L2 bridge domains with Vhost-User and VLAN initialized in circular\
385 | | ... | topology \| 1 \| 2 \| 10 \| pop-1 \|
386 | |
387 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${subid} | ${tag_rewrite}
388 | |
389 | | ${dut2_status} | ${value}= | Run Keyword And Ignore Error
390 | | ... | Variable Should Exist | ${dut2}
391 | |
392 | | Set interfaces in path up
393 | |
394 | | Run Keyword If | '${dut2_status}' == 'PASS'
395 | | ... | Initialize VLAN dot1q sub-interfaces in circular topology
396 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
397 | | ... | ELSE | Initialize VLAN dot1q sub-interfaces in circular topology
398 | | ... | ${dut1} | ${dut1_if2} | SUB_ID=${subid}
399 | | Run Keyword If | '${dut2_status}' == 'PASS'
400 | | ... | Configure L2 tag rewrite method on interfaces | ${dut1}
401 | | ... | ${subif_index_1} | ${dut2} | ${subif_index_2} | ${tag_rewrite}
402 | | ... | ELSE | Configure L2 tag rewrite method on interfaces
403 | | ... | ${dut1} | ${subif_index_1} | TAG_REWRITE_METHOD=${tag_rewrite}
404 | |
405 | | Configure vhost interfaces | ${dut1}
406 | | ... | /var/run/vpp/sock-1-${bd_id1} | /var/run/vpp/sock-1-${bd_id2}
407 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
408 | | Add interface to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
409 | | Add interface to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
410 | | Add interface to bridge domain | ${dut1} | ${subif_index_1} | ${bd_id2}
411 | | Run Keyword If | '${dut2_status}' == 'PASS'
412 | | ... | Configure vhost interfaces | ${dut2}
413 | | ... | /var/run/vpp/sock-1-${bd_id1} | /var/run/vpp/sock-1-${bd_id2}
414 | | Run Keyword If | '${dut2_status}' == 'PASS'
415 | | ... | Add interface to bridge domain | ${dut2} | ${subif_index_2}
416 | | ... | ${bd_id1}
417 | | Run Keyword If | '${dut2_status}' == 'PASS'
418 | | ... | Add interface to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
419 | | Run Keyword If | '${dut2_status}' == 'PASS'
420 | | ... | Add interface to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
421 | | Run Keyword If | '${dut2_status}' == 'PASS'
422 | | ... | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
423
424 | Initialize L2 bridge domains with Vhost-User and VLAN with VPP link bonding in a 3-node circular topology
425 | | [Documentation]
426 | | ... | Create two Vhost-User interfaces on all defined VPP nodes. Create one
427 | | ... | link bonding (BondEthernet) interface on both VPP nodes. Enslave one
428 | | ... | physical interface towards next DUT by BondEthernet interface. Setup
429 | | ... | VLAN on BondEthernet interfaces between DUTs. Add one Vhost-User
430 | | ... | interface into L2 bridge domains with learning enabled with physical
431 | | ... | interface towards TG and other Vhost-User interface into L2 bridge
432 | | ... | domains with learning enabled with VLAN sub-interface. All interfaces
433 | | ... | are brought up.
434 | |
435 | | ... | *Arguments:*
436 | | ... | - bd_id1 - Bridge domain ID. Type: integer
437 | | ... | - bd_id2 - Bridge domain ID. Type: integer
438 | | ... | - subid - ID of the sub-interface to be created. Type: string
439 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
440 | | ... | - bond_mode - Link bonding mode. Type: string
441 | | ... | - lb_mode - Load balance mode. Type: string
442 | |
443 | | ... | *Example:*
444 | |
445 | | ... | \| Initialize L2 bridge domains with Vhost-User and VLAN with VPP\
446 | | ... | link bonding in a 3-node circular topology \| 1 \| 2 \
447 | | ... | \| 10 \| pop-1 \| xor \| l34 \|
448 | |
449 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${subid} | ${tag_rewrite}
450 | | ... | ${bond_mode} | ${lb_mode}
451 | |
452 | | Set interfaces in path up
453 | | ${dut1_eth_bond_if1}= | VPP Create Bond Interface | ${dut1} | ${bond_mode}
454 | | ... | ${lb_mode}
455 | | Set Interface State | ${dut1} | ${dut1_eth_bond_if1} | up
456 | | VPP Set interface MTU | ${dut1} | ${dut1_eth_bond_if1}
457 | | ${if2_status} | ${value}= | Run Keyword And Ignore Error
458 | | ... | Variable Should Exist | ${dut1_if2}
459 | | Run Keyword If | '${if2_status}' == 'PASS'
460 | | ... | VPP Enslave Physical Interface | ${dut1} | ${dut1_if2}
461 | | ... | ${dut1_eth_bond_if1}
462 | | ... | ELSE
463 | | ... | VPP Enslave Physical Interface | ${dut1} | ${dut1_if2_1}
464 | | ... | ${dut1_eth_bond_if1}
465 | | Run Keyword Unless | '${if2_status}' == 'PASS'
466 | | ... | VPP Enslave Physical Interface | ${dut1} | ${dut1_if2_2}
467 | | ... | ${dut1_eth_bond_if1}
468 | | ${dut2_eth_bond_if1}= | VPP Create Bond Interface | ${dut2} | ${bond_mode}
469 | | ... | ${lb_mode}
470 | | Set Interface State | ${dut2} | ${dut2_eth_bond_if1} | up
471 | | VPP Set interface MTU | ${dut2} | ${dut2_eth_bond_if1}
472 | | ${if1_status} | ${value}= | Run Keyword And Ignore Error
473 | | ... | Variable Should Exist | ${dut2_if1}
474 | | Run Keyword If | '${if1_status}' == 'PASS'
475 | | ... | VPP Enslave Physical Interface | ${dut2} | ${dut2_if1}
476 | | ... | ${dut2_eth_bond_if1}
477 | | ... | ELSE
478 | | ... | VPP Enslave Physical Interface | ${dut2} | ${dut2_if1_1}
479 | | ... | ${dut2_eth_bond_if1}
480 | | Run Keyword Unless | '${if2_status}' == 'PASS'
481 | | ... | VPP Enslave Physical Interface | ${dut2} | ${dut2_if1_2}
482 | | ... | ${dut2_eth_bond_if1}
483 | | VPP Show Bond Data On All Nodes | ${nodes} | verbose=${TRUE}
484 | | Initialize VLAN dot1q sub-interfaces in circular topology
485 | | ... | ${dut1} | ${dut1_eth_bond_if1} | ${dut2} | ${dut2_eth_bond_if1}
486 | | ... | ${subid}
487 | | Configure L2 tag rewrite method on interfaces
488 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
489 | | ... | ${tag_rewrite}
490 | | Configure vhost interfaces | ${dut1}
491 | | ... | /var/run/vpp/sock-1-${bd_id1} | /var/run/vpp/sock-1-${bd_id2}
492 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
493 | | Add interface to bridge domain | ${dut1} | ${vhost_if1} | ${bd_id1}
494 | | Add interface to bridge domain | ${dut1} | ${vhost_if2} | ${bd_id2}
495 | | Add interface to bridge domain | ${dut1} | ${subif_index_1} | ${bd_id2}
496 | | Configure vhost interfaces | ${dut2}
497 | | ... | /var/run/vpp/sock-1-${bd_id1} | /var/run/vpp/sock-1-${bd_id2}
498 | | Add interface to bridge domain | ${dut2} | ${subif_index_2} | ${bd_id1}
499 | | Add interface to bridge domain | ${dut2} | ${vhost_if1} | ${bd_id1}
500 | | Add interface to bridge domain | ${dut2} | ${vhost_if2} | ${bd_id2}
501 | | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
502
503 | Initialize L2 Bridge Domain with memif pairs on DUT node
504 | | [Documentation]
505 | | ... | Create pairs of Memif interfaces on DUT node. Put each Memif interface
506 | | ... | to separate L2 bridge domain with one physical or memif interface
507 | | ... | to create a chain accross DUT node.
508 | |
509 | | ... | *Arguments:*
510 | | ... | - dut - DUT node. Type: dictionary
511 | | ... | - nf_chain - NF chain. Type: integer
512 | | ... | - nf_nodes - Number of NFs nodes per chain. Type: integer
513 | | ... | - auto_scale - Whether to use same amount of RXQs for memif interface
514 | | ... | in containers as vswitch, otherwise use single RXQ. Type: boolean
515 | |
516 | | ... | *Note:*
517 | | ... | Socket paths for Memif are defined in following format:
518 | | ... | - /tmp/memif-\${dut}_CNF\${nf_id}-\${sid}
519 | |
520 | | ... | *Example:*
521 | |
522 | | ... | \| Initialize L2 Bridge Domain with memif pairs on DUT node \
523 | | ... | \| ${dut} \| 1 \| 1 \|
524 | |
525 | | [Arguments] | ${dut} | ${nf_chain}=${1} | ${nf_nodes}=${1}
526 | | ... | ${auto_scale}=${True}
527 | |
528 | | ${rxq}= | Run Keyword If | ${auto_scale} == ${True}
529 | | ... | Set Variable | ${rxq_count_int}
530 | | ... | ELSE | Set Variable | ${1}
531 | | ${bd_id1}= | Evaluate | ${nf_nodes} * (${nf_chain} - 1) + ${nf_chain}
532 | | ${bd_id2}= | Evaluate | ${nf_nodes} * ${nf_chain} + ${nf_chain}
533 | | ${dut_str}= | Convert To Lowercase | ${dut}
534 | | Add interface to bridge domain
535 | | ... | ${nodes['${dut}']} | ${${dut_str}_${prev_layer}_${nf_chain}_1}
536 | | ... | ${bd_id1}
537 | | Add interface to bridge domain
538 | | ... | ${nodes['${dut}']} | ${${dut_str}_${prev_layer}_${nf_chain}_2}
539 | | ... | ${bd_id2}
540 | | FOR | ${nf_node} | IN RANGE | 1 | ${nf_nodes}+1
541 | | | ${nf_id}= | Evaluate | (${nf_chain} - ${1}) * ${nf_nodes} + ${nf_node}
542 | | | ${sock1}= | Set Variable | memif-${dut}_CNF
543 | | | ${sock2}= | Set Variable | memif-${dut}_CNF
544 | | | ${bd_id1}= | Evaluate | ${nf_id} + (${nf_chain} - 1)
545 | | | ${bd_id2}= | Evaluate | ${bd_id1} + 1
546 | | | Set up memif interfaces on DUT node | ${nodes['${dut}']}
547 | | | ... | ${sock1} | ${sock2} | ${nf_id} | ${dut}-memif-${nf_id}-if1
548 | | | ... | ${dut}-memif-${nf_id}-if2 | ${rxq} | ${rxq}
549 | | | Add interface to bridge domain
550 | | | ... | ${nodes['${dut}']} | ${${dut}-memif-${nf_id}-if1} | ${bd_id1}
551 | | | Add interface to bridge domain
552 | | | ... | ${nodes['${dut}']} | ${${dut}-memif-${nf_id}-if2} | ${bd_id2}
553 | | END
554
555 | Initialize L2 Bridge Domain with memif pairs
556 | | [Documentation]
557 | | ... | Create pairs of Memif interfaces on all defined VPP nodes. Put each
558 | | ... | Memif interface to separate L2 bridge domain with one physical or
559 | | ... | virtual interface to create a chain accross DUT node.
560 | |
561 | | ... | *Arguments:*
562 | | ... | - nf_chain - NF chain. Type: integer
563 | | ... | - nf_nodes - Number of NFs nodes per chain. Type: integer
564 | | ... | - auto_scale - Whether to use same amount of RXQs for memif interface
565 | | ... | in containers as vswitch, otherwise use single RXQ. Type: boolean
566 | |
567 | | ... | *Example:*
568 | |
569 | | ... | \| Initialize L2 Bridge Domain with memif pairs \| 1 \| 1 \|
570 | |
571 | | [Arguments] | ${nf_chain}=${1} | ${nf_nodes}=${1} | ${auto_scale}=${True}
572 | |
573 | | FOR | ${dut} | IN | @{duts}
574 | | | Initialize L2 Bridge Domain with memif pairs on DUT node | ${dut}
575 | | | ... | nf_chain=${nf_chain} | nf_nodes=${nf_nodes}
576 | | | ... | auto_scale=${auto_scale}
577 | | END
578
579 | Initialize L2 Bridge Domain for multiple chains with memif pairs
580 | | [Documentation]
581 | | ... | Create pairs of Memif interfaces for defined number of NF chains
582 | | ... | with defined number of NF nodes on all defined VPP nodes. Add each
583 | | ... | Memif interface into L2 bridge domains with learning enabled
584 | | ... | with physical inteface or Memif interface of another NF.
585 | |
586 | | ... | *Arguments:*
587 | | ... | - nf_chains - Number of chains of NFs. Type: integer
588 | | ... | - nf_nodes - Number of NFs nodes per chain. Type: integer
589 | | ... | - auto_scale - Whether to use same amount of RXQs for memif interface
590 | | ... | in containers as vswitch, otherwise use single RXQ. Type: boolean
591 | |
592 | | ... | *Example:*
593 | |
594 | | ... | \| Initialize L2 Bridge Domain for multiple chains with memif pairs \
595 | | ... | \| 1 \| 1 \|
596 | |
597 | | [Arguments] | ${nf_chains}=${1} | ${nf_nodes}=${1} | ${auto_scale}=${True}
598 | |
599 | | FOR | ${nf_chain} | IN RANGE | 1 | ${nf_chains}+1
600 | | | Initialize L2 Bridge Domain with memif pairs | nf_chain=${nf_chain}
601 | | | ... | nf_nodes=${nf_nodes} | auto_scale=${auto_scale}
602 | | END
603 | | Set interfaces in path up
604 | | Show Memif on all DUTs | ${nodes}
605 | | VPP round robin RX placement on all DUTs | ${nodes} | prefix=memif
606
607 | Initialize L2 Bridge Domain for pipeline with memif pairs
608 | | [Documentation]
609 | | ... | Create pairs of Memif interfaces on all defined VPP nodes. Put each
610 | | ... | Memif interface to separate L2 bridge domain with one physical or
611 | | ... | virtual interface to create a service pipeline on DUT node.
612 | |
613 | | ... | *Arguments:*
614 | | ... | - nf_chain - NF pipe. Type: integer
615 | | ... | - nf_nodes - Number of NFs nodes per pipeline. Type: integer
616 | | ... | - auto_scale - Whether to use same amount of RXQs for memif interface
617 | | ... | in containers as vswitch, otherwise use single RXQ. Type: boolean
618 | |
619 | | ... | *Example:*
620 | |
621 | | ... | \| Initialize L2 Bridge Domain for pipeline with memif pairs \
622 | | ... | \| 1 \| 1 \|
623 | |
624 | | [Arguments] | ${nf_chain}=${1} | ${nf_nodes}=${1} | ${auto_scale}=${True}
625 | |
626 | | ${rxq}= | Run Keyword If | ${auto_scale} == ${True}
627 | | ... | Set Variable | ${rxq_count_int}
628 | | ... | ELSE | Set Variable | ${1}
629 | | ${bd_id1}= | Evaluate | ${nf_nodes} * (${nf_chain} - 1) + ${nf_chain}
630 | | ${bd_id2}= | Evaluate | ${nf_nodes} * ${nf_chain} + ${nf_chain}
631 | | FOR | ${dut} | IN | @{duts}
632 | | | ${dut_str}= | Convert To Lowercase | ${dut}
633 | | | Add interface to bridge domain
634 | | | ... | ${nodes['${dut}']} | ${${dut_str}_${prev_layer}_${nf_chain}_1}
635 | | | ... | ${bd_id1}
636 | | | Add interface to bridge domain
637 | | | ... | ${nodes['${dut}']} | ${${dut_str}_${prev_layer}_${nf_chain}_2}
638 | | | ... | ${bd_id2}
639 | | | ${nf_id_frst}= | Evaluate | (${nf_chain}-${1}) * ${nf_nodes} + ${1}
640 | | | ${nf_id_last}= | Evaluate | (${nf_chain}-${1}) * ${nf_nodes} + ${nf_nodes}
641 | | | ${sid_frst}= | Evaluate | ${nf_id_frst} * ${2} - ${1}
642 | | | ${sid_last}= | Evaluate | ${nf_id_last} * ${2}
643 | | | Set up single memif interface on DUT node | ${nodes['${dut}']}
644 | | | ... | memif-${dut}_CNF | mid=${nf_id_frst} | sid=${sid_frst}
645 | | | ... | memif_if=${dut}-memif-${nf_id_frst}-if1
646 | | | ... | rxq=${rxq} | txq=${rxq}
647 | | | Set up single memif interface on DUT node | ${nodes['${dut}']}
648 | | | ... | memif-${dut}_CNF | mid=${nf_id_last} | sid=${sid_last}
649 | | | ... | memif_if=${dut}-memif-${nf_id_last}-if2
650 | | | ... | rxq=${rxq} | txq=${rxq}
651 | | | Add interface to bridge domain
652 | | | ... | ${nodes['${dut}']} | ${${dut}-memif-${nf_id_frst}-if1} | ${bd_id1}
653 | | | Add interface to bridge domain
654 | | | ... | ${nodes['${dut}']} | ${${dut}-memif-${nf_id_last}-if2} | ${bd_id2}
655 | | END
656
657 | Initialize L2 Bridge Domain for multiple pipelines with memif pairs
658 | | [Documentation]
659 | | ... | Create pairs of Memif interfaces for defined number of NF pipelines
660 | | ... | with defined number of NF nodes on all defined VPP nodes. Add each
661 | | ... | Memif interface into L2 bridge domains with learning enabled
662 | | ... | with physical inteface or Memif interface of another NF.
663 | |
664 | | ... | *Arguments:*
665 | | ... | - nf_chains - Number of pipelines of NFs. Type: integer
666 | | ... | - nf_nodes - Number of NFs nodes per pipeline. Type: integer
667 | | ... | - auto_scale - Whether to use same amount of RXQs for memif interface
668 | | ... | in containers as vswitch, otherwise use single RXQ. Type: boolean
669 | |
670 | | ... | *Example:*
671 | |
672 | | ... | \| Initialize L2 Bridge Domain for multiple pipelines with memif \
673 | | ... | pairs \| 1 \| 1 \|
674 | |
675 | | [Arguments] | ${nf_chains}=${1} | ${nf_nodes}=${1} | ${auto_scale}=${True}
676 | |
677 | | FOR | ${nf_chain} | IN RANGE | 1 | ${nf_chains}+1
678 | | | Initialize L2 Bridge Domain for pipeline with memif pairs
679 | | | ... | nf_chain=${nf_chain} | nf_nodes=${nf_nodes}
680 | | | ... | auto_scale=${auto_scale}
681 | | END
682 | | Set interfaces in path up
683 | | Show Memif on all DUTs | ${nodes}
684 | | VPP round robin RX placement on all DUTs | ${nodes} | prefix=memif
685
686 | Initialize L2 Bridge Domain with memif pairs and VLAN in circular topology
687 | | [Documentation]
688 | | ... | Create pairs of Memif interfaces on all defined VPP nodes. Put each
689 | | ... | Memif interface to separate L2 bridge domain with one physical or
690 | | ... | virtual interface to create a chain accross DUT node. In case of
691 | | ... | 3-node topology create VLAN sub-interfaces between DUTs. In case of
692 | | ... | 2-node topology create VLAN sub-interface on dut1-if2 interface. All
693 | | ... | interfaces are brought up.
694 | |
695 | | ... | *Arguments:*
696 | | ... | - bd_id1 - Bridge domain ID. Type: integer
697 | | ... | - bd_id2 - Bridge domain ID. Type: integer
698 | | ... | - subid - ID of the sub-interface to be created. Type: string
699 | | ... | - tag_rewrite - Method of tag rewrite. Type: string
700 | |
701 | | ... | *Example:*
702 | |
703 | | ... | \| Initialize L2 Bridge Domain with memif pairs and VLAN in circular\
704 | | ... | topology \| 1 \| 2 \| 10 \| pop-1 \|
705 | |
706 | | [Arguments] | ${bd_id1} | ${bd_id2} | ${subid} | ${tag_rewrite}
707 | |
708 | | ${dut2_status} | ${value}= | Run Keyword And Ignore Error
709 | | ... | Variable Should Exist | ${dut2}
710 | |
711 | | Set interfaces in path up
712 | |
713 | | Run Keyword If | '${dut2_status}' == 'PASS'
714 | | ... | Initialize VLAN dot1q sub-interfaces in circular topology
715 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
716 | | ... | ELSE | Initialize VLAN dot1q sub-interfaces in circular topology
717 | | ... | ${dut1} | ${dut1_if2} | SUB_ID=${subid}
718 | | Run Keyword If | '${dut2_status}' == 'PASS'
719 | | ... | Configure L2 tag rewrite method on interfaces | ${dut1}
720 | | ... | ${subif_index_1} | ${dut2} | ${subif_index_2} | ${tag_rewrite}
721 | | ... | ELSE | Configure L2 tag rewrite method on interfaces
722 | | ... | ${dut1} | ${subif_index_1} | TAG_REWRITE_METHOD=${tag_rewrite}
723 | |
724 | | ${number}= | Set Variable | ${1}
725 | | ${sock1}= | Set Variable | memif-DUT1_CNF
726 | | ${sock2}= | Set Variable | memif-DUT1_CNF
727 | | ${memif_if1_name}= | Set Variable | DUT1-memif-${number}-if1
728 | | ${memif_if2_name}= | Set Variable | DUT1-memif-${number}-if2
729 | | Set up memif interfaces on DUT node | ${dut1} | ${sock1} | ${sock2}
730 | | ... | ${number} | ${memif_if1_name} | ${memif_if2_name} | ${rxq_count_int}
731 | | ... | ${rxq_count_int}
732 | | Add interface to bridge domain | ${dut1} | ${dut1_if1} | ${bd_id1}
733 | | Add interface to bridge domain | ${dut1} | ${${memif_if1_name}} | ${bd_id1}
734 | | Add interface to bridge domain | ${dut1} | ${${memif_if2_name}} | ${bd_id2}
735 | | Add interface to bridge domain | ${dut1} | ${subif_index_1} | ${bd_id2}
736 | | ${sock1}= | Run Keyword If | '${dut2_status}' == 'PASS'
737 | | ... | Set Variable | memif-DUT2_CNF
738 | | ${sock2}= | Run Keyword If | '${dut2_status}' == 'PASS'
739 | | ... | Set Variable | memif-DUT2_CNF
740 | | ${memif_if1_name}= | Run Keyword If | '${dut2_status}' == 'PASS'
741 | | ... | Set Variable | DUT2-memif-${number}-if1
742 | | ${memif_if2_name}= | Run Keyword If | '${dut2_status}' == 'PASS'
743 | | ... | Set Variable | DUT2-memif-${number}-if2
744 | | Run Keyword If | '${dut2_status}' == 'PASS'
745 | | ... | Set up memif interfaces on DUT node | ${dut2} | ${sock1} | ${sock2}
746 | | ... | ${number} | ${memif_if1_name} | ${memif_if2_name} | ${rxq_count_int}
747 | | ... | ${rxq_count_int}
748 | | Run Keyword If | '${dut2_status}' == 'PASS'
749 | | ... | Add interface to bridge domain | ${dut2} | ${subif_index_2}
750 | | ... | ${bd_id1}
751 | | Run Keyword If | '${dut2_status}' == 'PASS'
752 | | ... | Add interface to bridge domain | ${dut2} | ${${memif_if1_name}}
753 | | ... | ${bd_id1}
754 | | Run Keyword If | '${dut2_status}' == 'PASS'
755 | | ... | Add interface to bridge domain | ${dut2} | ${${memif_if2_name}}
756 | | ... | ${bd_id2}
757 | | Run Keyword If | '${dut2_status}' == 'PASS'
758 | | ... | Add interface to bridge domain | ${dut2} | ${dut2_if2} | ${bd_id2}
759 | |
760 | | Show Memif on all DUTs | ${nodes}
761 | | VPP round robin RX placement on all DUTs | ${nodes} | prefix=memif
762
763 | Initialize L2 Bridge Domain for single memif
764 | | [Documentation]
765 | | ... | Create single Memif interface on all defined VPP nodes. Put Memif
766 | | ... | interface to separate L2 bridge domain with one physical interface.
767 | |
768 | | ... | *Arguments:*
769 | | ... | - number - Memif ID. Type: integer
770 | |
771 | | ... | *Note:*
772 | | ... | Socket paths for Memif are defined in following format:
773 | | ... | - /tmp/memif-DUT1_CNF\${number}-\${sid}
774 | |
775 | | ... | KW uses test variable ${rxq_count_int} set by KW Add worker threads
776 | | ... | and rxqueues to all DUTs
777 | |
778 | | ... | *Example:*
779 | |
780 | | ... | \| Initialize L2 Bridge Domain for single memif \| 1 \|
781 | |
782 | | [Arguments] | ${number}=${1}
783 | |
784 | | FOR | ${dut} | IN | @{duts}
785 | | | ${sock}= | Set Variable | memif-${dut}_CNF
786 | | | ${sid}= | Evaluate | (${number} * ${2}) - ${1}
787 | | | Set up single memif interface on DUT node | ${nodes['${dut}']} | ${sock}
788 | | | ... | mid=${number} | sid=${sid} | memif_if=${dut}-memif-${number}-if1
789 | | | ... | rxq=${rxq_count_int} | txq=${rxq_count_int}
790 | | | Add interface to bridge domain | ${nodes['${dut}']} | ${${dut}_if1}
791 | | | ... | ${number}
792 | | | Add interface to bridge domain | ${nodes['${dut}']}
793 | | | ... | ${${dut}-memif-${number}-if1} | ${number}
794 | | END
795 | | Set single interfaces in path up
796 | | Show Memif on all DUTs | ${nodes}
797
798 | Initialize L2 bridge domain with MACIP ACLs on DUT1 in 3-node circular topology
799 | | [Documentation]
800 | | ... | Setup L2BD topology by adding two interfaces on DUT1 into bridge
801 | | ... | domain that is created automatically with index 1. Learning is
802 | | ... | enabled. Interfaces are brought up. Apply required MACIP ACL rules to
803 | | ... | DUT1 interfaces.
804 | |
805 | | Set interfaces in path up
806 | | VPP Add L2 Bridge Domain | ${dut1} | ${1} | ${dut1_if1} | ${dut1_if2}
807 | | Configure L2XC | ${dut2} | ${dut2_if1} | ${dut2_if2}
808 | | Configure MACIP ACLs | ${dut1} | ${dut1_if1} | ${dut1_if2}
809
810 | Initialize L2 bridge domain with IPv4 ACLs on DUT1 in 3-node circular topology
811 | | [Documentation]
812 | | ... | Setup L2BD topology by adding two interfaces on DUT1 into bridge
813 | | ... | domain that is created automatically with index 1. Learning is
814 | | ... | enabled. Interfaces are brought up. Apply required ACL rules to DUT1
815 | | ... | interfaces.
816 | |
817 | | Set interfaces in path up
818 | | VPP Add L2 Bridge Domain | ${dut1} | ${1} | ${dut1_if1} | ${dut1_if2}
819 | | Configure L2XC | ${dut2} | ${dut2_if1} | ${dut2_if2}
820 | | Configure IPv4 ACLs | ${dut1} | ${dut1_if1} | ${dut1_if2}