ea1d2b090b60418056f01a3c056e0538a7da41ea
[csit.git] / resources / libraries / robot / honeycomb / interfaces.robot
1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Library | resources.libraries.python.InterfaceUtil
16 | ...     | WITH NAME | interfaceCLI
17 | Library | resources.libraries.python.honeycomb.HcAPIKwInterfaces.InterfaceKeywords
18 | ...     | WITH NAME | InterfaceAPI
19
20 *** Keywords ***
21 | Interface state is
22 | | [Documentation] | Uses VPP binary API to ensure that the interface under\
23 | | ... | test is in the specified admin state.
24 | | ...
25 | | ... | *Arguments:*
26 | | ... | - node - information about a DUT node. Type: dictionary
27 | | ... | - interface - name of an interface on the specified node. Type: string
28 | | ... | - state - state to set on interface. Type:string
29 | | ...
30 | | ... | *Example:*
31 | | ...
32 | | ... | \| Interface state is \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \
33 | | ... | \| up \|
34 | | [Arguments] | ${node} | ${interface} | ${state}
35 | | interfaceCLI.Set interface state | ${node} | ${interface} | ${state}
36
37 | Honeycomb sets interface state
38 | | [Documentation] | Uses Honeycomb API to change the admin state\
39 | | ... | of the specified interface.
40 | | ...
41 | | ... | *Arguments:*
42 | | ... | - node - information about a DUT node. Type: dictionary
43 | | ... | - interface - name of an interface on the specified node. Type: string
44 | | ... | - state - state to set on interface. Type:string
45 | | ...
46 | | ... | *Example:*
47 | | ...
48 | | ... | \| Honeycomb sets interface state \| ${nodes['DUT1']} \
49 | | ... | \| GigabitEthernet0/8/0 \| up \|
50 | | [Arguments] | ${node} | ${interface} | ${state}
51 | | interfaceAPI.Set interface state | ${node} | ${interface} | ${state}
52
53 | Interface state from Honeycomb should be
54 | | [Documentation] | Retrieves interface admin state through Honeycomb and\
55 | | ... | compares with state supplied in argument.
56 | | ...
57 | | ... | *Arguments:*
58 | | ... | - node - information about a DUT node. Type: dictionary
59 | | ... | - interface - name of an interface on the specified node. Type: string
60 | | ... | - state - expected interface state. Type: string
61 | | ...
62 | | ... | *Example:*
63 | | ...
64 | | ... | \| Interface state from Honeycomb should be \| ${nodes['DUT1']} \
65 | | ... | \| GigabitEthernet0/8/0 \| up \|
66 | | [Arguments] | ${node} | ${interface} | ${state}
67 | | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface}
68 | | ${api_state}= | Set Variable | ${api_data['admin-status']}
69 | | Should be equal | ${api_state} | ${state}
70
71 | Interface state from VAT should be
72 | | [Documentation] | Retrieves interface admin state through VAT and compares\
73 | | ... | with state supplied in argument.
74 | | ...
75 | | ... | *Arguments:*
76 | | ... | - node - information about a DUT node. Type: dictionary
77 | | ... | - interface - name of an interface on the specified node. Type: string
78 | | ... | - state - expected interface state. Type: string
79 | | ...
80 | | ... | _NOTE:_ Vat returns state as int (1/0) instead of string (up/down).
81 | | ... | This keyword also handles translation.
82 | | ...
83 | | ... | *Example:*
84 | | ...
85 | | ... | \| Interface state from VAT should be \| ${nodes['DUT1']} \
86 | | ... | \| GigabitEthernet0/8/0 \| up \|
87 | | [Arguments] | ${node} | ${interface} | ${state}
88 | | ${vat_data}= | InterfaceCLI.VPP get interface data | ${node} | ${interface}
89 | | ${vat_state}= | Set Variable if
90 | | ... | ${vat_data['admin_up_down']} == 1 | up | down
91 | | Should be equal | ${vat_state} | ${state}
92
93 | Honeycomb sets interface ipv4 address
94 | | [Documentation] | Uses Honeycomb API to change ipv4 configuration\
95 | | ... | of the specified interface.
96 | | ...
97 | | ... | *Arguments:*
98 | | ... | - node - information about a DUT node. Type: dictionary
99 | | ... | - interface - name of an interface on the specified node. Type: string
100 | | ... | - address - IP address to set. Type: string
101 | | ... | - netmask - subnet mask to set. Type: string
102 | | ... | - settings - ipv4 interface settings. Type: dictionary
103 | | ...
104 | | ... | *Example:*
105 | | ...
106 | | ... | \| Honeycomb sets interface ipv4 configuration \| ${nodes['DUT1']} \
107 | | ... | \| GigabitEthernet0/8/0 \| 192.168.0.2 \| 255.255.255.0 \
108 | | ... | \| ${{'enabled': True, 'mtu': 1500}} \|
109 | | [Arguments] | ${node} | ${interface} | ${address} | ${netmask}
110 | | ... | ${settings}
111 | | interfaceAPI.Add first ipv4 address
112 | | ... | ${node} | ${interface} | ${address} | ${netmask}
113 | | :FOR | ${key} | IN | @{settings.keys()}
114 | | | interfaceAPI.Configure interface ipv4
115 | | | ... | ${node} | ${interface} | ${key} | ${settings['${key}']}
116 | | | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface}
117
118 | Honeycomb sets interface ipv4 address with prefix
119 | | [Documentation] | Uses Honeycomb API to assign an ipv4 address to the\
120 | | ... | specified interface. Any existing addresses will be removed.
121 | | ...
122 | | ... | *Arguments:*
123 | | ... | - node - information about a DUT node. Type: dictionary
124 | | ... | - interface - name of an interface on the specified node. Type: string
125 | | ... | - address - IP address to set. Type: string
126 | | ... | - prefix - length of address network prefix. Type: int
127 | | ... | - settings - ipv4 interface settings. Type: dictionary
128 | | ...
129 | | ... | *Example:*
130 | | ...
131 | | ... | \| Honeycomb sets interface ipv4 address with prefix \
132 | | ... | \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \| 192.168.0.2 \| 24 \|
133 | | [Arguments] | ${node} | ${interface} | ${address} | ${prefix}
134 | | ... | ${settings}
135 | | interfaceAPI.Add first ipv4 address
136 | | ... | ${node} | ${interface} | ${address} | ${prefix}
137 | | :FOR | ${key} | IN | @{settings.keys()}
138 | | | interfaceAPI.Configure interface ipv4
139 | | | ... | ${node} | ${interface} | ${key} | ${settings['${key}']}
140
141 | Honeycomb adds interface ipv4 neighbor
142 | | [Documentation] | Uses Honeycomb API to assign an ipv4 neighbor to the\
143 | | ... | specified interface.
144 | | ...
145 | | ... | *Arguments:*
146 | | ... | - node - information about a DUT node. Type: dictionary
147 | | ... | - interface - name of an interface on the specified node. Type: string
148 | | ... | - fib_address - IP address to add to fib table. Type: string
149 | | ... | - fib_mac - MAC address to add to fib table. Type: string
150 | | ...
151 | | ... | *Example:*
152 | | ...
153 | | ... | \| Honeycomb adds interface ipv4 neighbor \| ${nodes['DUT1']} \
154 | | ... | \| GigabitEthernet0/8/0 \| 192.168.0.3 \| 08:00:27:c0:5d:37 \
155 | | ... | \| ${{'enabled': True, 'mtu': 1500}} \|
156 | | [Arguments] | ${node} | ${interface} | ${fib_address} | ${fib_mac}
157 | | interfaceAPI.Add ipv4 neighbor
158 | | ... | ${node} | ${interface} | ${fib_address} | ${fib_mac}
159
160 | IPv4 config from Honeycomb should be
161 | | [Documentation] | Retrieves interface ipv4 configuration through Honeycomb\
162 | | ... | and compares with state supplied in argument.
163 | | ...
164 | | ... | *Arguments:*
165 | | ... | - node - information about a DUT node. Type: dictionary
166 | | ... | - interface - name of an interface on the specified node. Type: string
167 | | ... | - address - IP address to expect. Type: string
168 | | ... | - prefix - prefix length to expect. Type: string
169 | | ... | - fib_address - IP address to expect in fib table. Type: string
170 | | ... | - fib_mac - MAC address to expect in fib table. Type: string
171 | | ... | - settings - ipv4 interface settings to expect. Type: dictionary
172 | | ...
173 | | ... | *Example:*
174 | | ...
175 | | ... | \| IPv4 config from Honeycomb should be \| ${nodes['DUT1']} \
176 | | ... | \| GigabitEthernet0/8/0 \| 192.168.0.2 \| 255.255.255.0 \
177 | | ... | \| 192.168.0.3 \| 08:00:27:c0:5d:37 \
178 | | ... | \| ${{'enabled': True, 'mtu': 1500}} \|
179 | | [Arguments] | ${node} | ${interface} | ${address} | ${prefix}
180 | | ... | ${fib_address} | ${fib_mac} | ${settings}
181 | | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface}
182 | | Should be equal | ${address}
183 | | ... | ${api_data['ietf-ip:ipv4']['address'][0]['ip']}
184 | | Should be equal | ${prefix}
185 | | ... | ${api_data['ietf-ip:ipv4']['address'][0]['prefix-length']}
186 | | Should be equal | ${fib_address}
187 | | ... | ${api_data['ietf-ip:ipv4']['neighbor'][0]['ip']
188 | | Should be equal | ${fib_mac}
189 | | ... | ${api_data['ietf-ip:ipv4']['neighbor'][0]['link-layer-address']
190 | | :FOR | ${key} | IN | @{settings.keys()}
191 | | | Should be equal
192 | | | ... | ${settings['{key']} | ${api_data['ietf-ip:ipv4']['{$key}']}
193
194 | IPv4 config from VAT should be
195 | | [Documentation] | Retrieves interface ipv4 configuration through VAT and\
196 | | ... | compares with state supplied in argument.
197 | | ...
198 | | ... | *Arguments:*
199 | | ... | - node - information about a DUT node. Type: dictionary
200 | | ... | - interface - name of an interface on the specified node. Type: string
201 | | ... | - address - IP address to expect. Type: string
202 | | ... | - netmask - subnet mask to expect. Type: string
203 | | ...
204 | | ... | *Example:*
205 | | ...
206 | | ... | \| IPv4 config from VAT should be \| ${nodes['DUT1']} \
207 | | ... | \| GigabitEthernet0/8/0 \| 192.168.0.2 \| 255.255.255.0 \|
208 | | [Arguments] | ${node} | ${interface} | ${address} | ${netmask}
209 | | ${vpp_data}= | interfaceCLI.VPP get interface ip addresses
210 | | ... | ${node} | ${interface} | ipv4
211 #TODO: update based on resolution of bug https://jira.fd.io/browse/VPP-132
212 | | Should be equal | ${vpp_data[0]['ip']} | ${address}
213 | | Should be equal | ${vpp_data[0]['netmask']} | ${netmask}
214
215 | Honeycomb removes interface ipv4 addresses
216 | | [Documentation] | Removes all configured ipv4 addresses from the specified\
217 | | ... | interface.
218 | | ...
219 | | ... | *Arguments:*
220 | | ... | - node - information about a DUT node. Type: dictionary
221 | | ... | - interface - name of an interface on the specified node. Type: string
222 | | ...
223 | | ... | *Example:*
224 | | ...
225 | | ... | \| Honeycomb removes interface ipv4 addresses \| ${nodes['DUT1']} \
226 | | ... | \| GigabitEthernet0/8/0 \|
227 | | [Arguments] | ${node} | ${interface}
228 | | Remove all ipv4 addresses | ${node} | ${interface}
229
230 | IPv4 address from Honeycomb should be empty
231 | | [Documentation] | Retrieves interface ipv4 configuration through Honeycomb\
232 | | ... | and expects to find no IPv4 addresses.
233 | | ...
234 | | ... | *Arguments:*
235 | | ... | - node - information about a DUT node. Type: dictionary
236 | | ... | - interface - name of an interface on the specified node. Type: string
237 | | ...
238 | | ... | *Example:*
239 | | ...
240 | | ... | \| IPv4 address from Honeycomb should be empty\| ${nodes['DUT1']} \
241 | | ... | \| GigabitEthernet0/8/0 \|
242 | | [Arguments] | ${node} | ${interface}
243 | | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface}
244 | | Should be empty | ${api_data['ietf-ip:ipv4']['address']
245
246 | IPv4 address from VAT should be empty
247 | | [Documentation] | Retrieves interface ipv4 configuration through VAT and\
248 | | ... | and expects to find no ipv4 addresses.
249 | | ...
250 | | ... | *Arguments:*
251 | | ... | - node - information about a DUT node. Type: dictionary
252 | | ... | - interface - name of an interface on the specified node. Type: string
253 | | ...
254 | | ... | *Example:*
255 | | ...
256 | | ... | \| IPv4 config from VAT should be empty \| ${nodes['DUT1']} \
257 | | ... | \| GigabitEthernet0/8/0 \|
258 | | [Arguments] | ${node} | ${interface}
259 | | Run keyword and expect error | *No JSON object could be decoded.*
260 | | ... | InterfaceCLI.VPP get interface ip addresses
261 | | ... | ${node} | ${interface} | ipv4
262
263 | Honeycomb sets interface ipv6 configuration
264 | | [Documentation] | Uses Honeycomb API to change ipv6 configuration\
265 | | ... | of the specified interface.
266 | | ...
267 | | ... | *Arguments:*
268 | | ... | - node - information about a DUT node. Type: dictionary
269 | | ... | - interface - name of an interface on the specified node. Type: string
270 | | ... | - address - IP address to set. Type: string
271 | | ... | - prefix - length of subnet prefix to set. Type: string
272 | | ... | - fib_address - IP address to add to fib table. Type: string
273 | | ... | - fib_mac - MAC address to add to fib table. Type: string
274 | | ... | - settings - ipv6 interface settings. Type: dictionary
275 | | ...
276 | | ... | *Example:*
277 | | ...
278 | | ... | \| Honeycomb sets interface ipv6 configuration \| ${nodes['DUT1']} \
279 | | ... | \| GigabitEthernet0/8/0 \| 10::10 \| 64 \
280 | | ... | \| 10::11 \| 08:00:27:c0:5d:37 \| ${{'enabled': True, 'mtu': 1500}} \|
281 | | [Arguments] | ${node} | ${interface} | ${address} | ${prefix}
282 | | ... | ${fib_address} | ${fib_mac} | ${settings}
283 | | interfaceAPI.Add first ipv6 address
284 | | ... | ${node} | ${interface} | ${address} | ${prefix}
285 | | interfaceAPI.Add first ipv6 neighbor
286 | | ... | ${node} | ${interface} | ${fib_address} | ${fib_mac}
287 | | :FOR | ${key} | IN | @{settings.keys()}
288 | | | interfaceAPI.Configure interface ipv6
289 | | | ... | ${node} | ${interface} | ${key} | ${settings['${key}']}
290
291 | IPv6 config from Honeycomb should be
292 | | [Documentation] | Retrieves interface ipv6 configuration through Honeycomb\
293 | | ... | and compares with state supplied in argument.
294 | | ...
295 | | ... | *Arguments:*
296 | | ... | - node - information about a DUT node. Type: dictionary
297 | | ... | - interface - name of an interface on the specified node. Type: string
298 | | ... | - address - IP address to expect. Type: string
299 | | ... | - prefix - length of subnet prefix to expect. Type: string
300 | | ... | - fib_address - IP address to expect in fib table. Type: string
301 | | ... | - fib_mac - MAC address to expect in fib table. Type: string
302 | | ... | - settings - ipv6 interface settings to expect. Type: dictionary
303 | | ...
304 | | ... | *Example:*
305 | | ...
306 | | ... | \| IPv6 config from Honeycomb should be \| ${nodes['DUT1']} \
307 | | ... | \| GigabitEthernet0/8/0 \| 10::10 \| 64 \
308 | | ... | \| 10::11 \| 08:00:27:c0:5d:37 \| ${{'enabled': True, 'mtu': 1500}} \|
309 | | [Arguments] | ${node} | ${interface} | ${address} | ${prefix}
310 | | ... | ${fib_address} | ${fib_mac} | ${settings}
311 | | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface}
312 | | Should be equal | ${address}
313 | | ... | ${api_data['ietf-ip:ipv6']['address'][0]['ip']}
314 | | Should be equal | ${prefix}
315 | | ... | ${api_data['ietf-ip:ipv6']['address'][0]['prefix-length']}
316 | | Should be equal | ${fib_address}
317 | | ... | ${api_data['ietf-ip:ipv6']['neighbor'][0]['ip']
318 | | Should be equal | ${fib_mac}
319 | | ... | ${api_data['ietf-ip:ipv6']['neighbor'][0]['link-layer-address']
320 | | :FOR | ${key} | IN | @{settings.keys()}
321 | | | Should be equal
322 | | ... | ${settings['{key']} | ${api_data['ietf-ip:ipv6']['{$key}']}
323
324 | IPv6 config from VAT should be
325 | | [Documentation] | Retrieves interface ipv6 configuration through VAT and\
326 | | ... | compares with state supplied in argument.
327 | | ...
328 | | ... | *Arguments:*
329 | | ... | - node - information about a DUT node. Type: dictionary
330 | | ... | - interface - name of an interface on the specified node. Type: string
331 | | ... | - address - IP address to expect. Type: string
332 | | ... | - prefix - length of subnet prefix to expect. Type: string
333 | | ...
334 | | ... | *Example:*
335 | | ...
336 | | ... | \| IPv6 config from VAT should be \| ${nodes['DUT1']} \
337 | | ... | \| GigabitEthernet0/8/0 \| 10::10 \| 64 \|
338 | | [Arguments] | ${node} | ${interface} | ${address} | ${prefix}
339 | | ${vpp_data}= | interfaceCLI.VPP get interface ip addresses
340 | | ... | ${node} | ${interface} | ipv6
341 | | Should be equal | ${vpp_data[0]['ip']} | ${address}
342 | | Should be equal | ${vpp_data[0]['prefix-length']} | ${prefix}
343
344 | Honeycomb sets interface ethernet and routing configuration
345 | | [Documentation] | Uses Honeycomb API to change interface configuration.
346 | | ...
347 | | ... | *Arguments:*
348 | | ... | - node - information about a DUT node. Type: dictionary
349 | | ... | - interface - name of an interface on the specified node. Type: string
350 | | ... | - ethernet - interface ethernet settings. Type: dictionary
351 | | ... | - routing - interface routing settings. Type: dictionary
352 | | ...
353 | | ... | *Example:*
354 | | ...
355 | | ... | \| Honeycomb sets interface ethernet and routing configuration \
356 | | ... | \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \| ${{'mtu': 1500}} \
357 | | ... | \| ${{'vrf-if': 2}} \|
358 | | [Arguments] | ${node} | ${interface} | ${ethernet} | ${routing}
359 | | :FOR | ${key} | IN | @{ethernet.keys()}
360 | | | interfaceAPI.Configure interface ethernet
361 | | | ... | ${node} | ${interface} | ${key} | ${ethernet['${key}']}
362 | | :FOR | ${key} | IN | @{routing.keys()}
363 | | | interfaceAPI.Configure interface routing
364 | | | ... | ${node} | ${interface} | ${key} | ${routing['${key}']}
365
366 | Interface ethernet and routing configuration from Honeycomb should be
367 | | [Documentation] | Retrieves interface routing and ethernet configuration\
368 | | ... | through Honeycomb and compares with settings supplied in arguments.
369 | | ...
370 | | ... | *Arguments:*
371 | | ... | - node - information about a DUT node. Type: dictionary
372 | | ... | - interface - name of an interface on the specified node. Type: string
373 | | ... | - ethernet - interface ethernet settings. Type: dictionary
374 | | ... | - routing - interface routing settings. Type: dictionary
375 | | ...
376 | | ... | *Example:*
377 | | ...
378 | | ... | \| Interface ethernet and routing configuration from Honeycomb \
379 | | ... | should be \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \
380 | | ... | \| ${{'mtu': 1500}} \| ${{'vrf-id': 2}} \|
381 | | [Arguments] | ${node} | ${interface} | ${ethernet} | ${routing}
382 | | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface}
383 | | :FOR | ${key} | IN | @{ethernet.keys()}
384 | | | Should be equal | ${api_data['${key}']} | ${ethernet['${key}']}
385 | | :FOR | ${key} | IN | @{routing.keys()}
386 | | | Should be equal | ${api_data['${key}']} | ${routing['${key}']}
387
388 | Interface ethernet and routing configuration from VAT should be
389 | | [Documentation] | Retrieves interface routing and ethernet configuration\
390 | | ... | through VAT and compares with settings supplied in arguments.
391 | | ...
392 | | ... | *Arguments:*
393 | | ... | - node - information about a DUT node. Type: dictionary
394 | | ... | - interface - name of an interface on the specified node. Type: string
395 | | ... | - mtu - value of maximum transmission unit expected. Type: integer
396 | | ... | - vrf-id - ID number of a VPN expected on interface. Type: integer
397 | | ...
398 | | ... | *Example:*
399 | | ...
400 | | ... | \| Interface ethernet and routing configuration from VAT \
401 | | ... | should be \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \| ${1500} \
402 | | ... | \| ${2} \|
403 | | [Arguments] | ${node} | ${interface} | ${mtu} | ${vrf-id}
404 | | ${vat_data}= | InterfaceCLI.VPP get interface data | ${node} | ${interface}
405 | | Should be equal | ${vat_data['mtu']} | ${mtu}
406
407 | Interface configuration from Honeycomb should be empty
408 | | [Documentation] | Attempts to retrieve interface configuration through\
409 | | ... | Honeycomb and expects to get empty dictionary.
410 | | ...
411 | | ... | *Arguments:*
412 | | ... | - node - information about a DUT node. Type: dictionary
413 | | ... | - interface - name of a interface on the specified node. Type:\
414 | | ... | string
415 | | ...
416 | | ... | *Example:*
417 | | ... | \| Interface configuration from Honeycomb should be empty\
418 | | ... | \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \|
419 | | ...
420 | | [Arguments] | ${node} | ${interface}
421 | | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface}
422 | | Should be empty | ${api_data}
423
424 | Interface configuration from VAT should be empty
425 | | [Documentation] | Attempts to retrieve Interface configuration through\
426 | | ... | VAT and expects to get empty dictionary.
427 | | ...
428 | | ... | *Arguments:*
429 | | ... | - node - information about a DUT node. Type: dictionary
430 | | ... | - interface - name of a Interface on the specified node. Type:\
431 | | ... | string
432 | | ...
433 | | ... | *Example:*
434 | | ... | \| Interface configuration from VAT should be empty\
435 | | ... | \| ${nodes['DUT1']} \| GigabitEthernet0/8/0 \|
436 | | ...
437 | | [Arguments] | ${node} | ${interface} |
438 | | ${vat_data}= | InterfaceCLI.VPP get interface data | ${node} | ${interface}
439 | | Should be empty | ${vat_data}
440
441 | Interface indices from Honeycomb and VAT should correspond
442 | | [Documentation] | Uses VAT and Honeycomb to get operational data about the\
443 | | ... | given interface and compares the interface indexes. The interface
444 | | ... | index from Honeycomb should be greater than index from VAT by one.
445 | | ...
446 | | ... | *Arguments:*
447 | | ... | - node - information about a DUT node. Type: dictionary
448 | | ... | - interface - name of the interface to be checked. Type: string
449 | | ...
450 | | ... | *Example:*
451 | | ...
452 | | ... | \| Interface indices from Honeycomb and VAT should correspond \
453 | | ... | \| ${nodes['DUT1']} \| vxlan_gpe_tunnel0 \|
454 | | ...
455 | | [Arguments] | ${node} | ${interface}
456 | | ...
457 | | ${api_data}= | interfaceAPI.Get interface oper data | ${node} | ${interface}
458 | | ${vat_data}= | InterfaceCLI.VPP get interface data | ${node} | ${interface}
459 | | ${sw_if_index}= | EVALUATE | ${vat_data['sw_if_index']} + 1
460 | | Should be equal as strings
461 | | ... | ${api_data['if-index']} | ${sw_if_index}