Upgrade autogen to NICs and search types
[csit.git] / resources / libraries / robot / performance / performance_utils.robot
1 # Copyright (c) 2019 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Library | Collections
16 | Library | resources.libraries.python.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.DpdkUtil
19 | Library | resources.libraries.python.InterfaceUtil
20 | Library | resources.libraries.python.KubernetesUtils
21 | Library | resources.libraries.python.VhostUser
22 | Library | resources.libraries.python.TrafficGenerator
23 | Library | resources.libraries.python.TrafficGenerator.OptimizedSearch
24 | Library | resources.libraries.python.TrafficGenerator.TGDropRateSearchImpl
25 | Library | resources.libraries.python.Trace
26 | Resource | resources/libraries/robot/shared/default.robot
27 | Resource | resources/libraries/robot/shared/interfaces.robot
28 | Resource | resources/libraries/robot/shared/counters.robot
29 | Resource | resources/libraries/robot/shared/container.robot
30 | Resource | resources/libraries/robot/shared/memif.robot
31 | Resource | resources/libraries/robot/l2/l2_bridge_domain.robot
32 | Resource | resources/libraries/robot/l2/l2_xconnect.robot
33 | Resource | resources/libraries/robot/ip/ip4.robot
34 | Resource | resources/libraries/robot/ip/ip6.robot
35 | Resource | resources/libraries/robot/l2/tagging.robot
36 | Documentation | Performance suite keywords - utilities to find and verify NDR
37 | ... | and PDR.
38
39 *** Keywords ***
40 | Find NDR and PDR intervals using optimized search
41 | | [Documentation]
42 | | ... | Find boundaries for RFC2544 compatible NDR and PDR values
43 | | ... | using an optimized search algorithm.
44 | | ... | Display results as formatted test message.
45 | | ... | Fail if a resulting lower bound has too high loss fraction.
46 | | ... | Input rates are understood as uni-directional,
47 | | ... | reported result contains bi-directional rates.
48 | | ... | Currently, the min_rate value is hardcoded to match test teardowns.
49 | | ...
50 | | ... | TODO: Should the trial duration of the additional
51 | | ... | measurements be configurable?
52 | | ...
53 | | ... | Some inputs are read from variables to streamline suites.
54 | | ...
55 | | ... | *Test (or broader scope) variables read:*
56 | | ... |   - traffic_profile - Topology type. Type: string
57 | | ... |   - frame_size - L2 Frame Size [B] or IMIX string. Type: int or str
58 | | ... |   - max_rate - Calculated unidirectional maximal transmit rate [pps].
59 | | ... |     Type: float
60 | | ...
61 | | ... | *Arguments:*
62 | | ... | - packet_loss_ratio - Accepted loss during search. Type: float
63 | | ... | - final_relative_width - Maximal width multiple of upper. Type: float
64 | | ... | - final_trial_duration - Duration of final trials [s]. Type: float
65 | | ... | - initial_trial_duration - Duration of initial trials [s]. Type: float
66 | | ... | - intermediate phases - Number of intermediate phases [1]. Type: int
67 | | ... | - timeout - Fail if search duration is longer [s]. Type: float
68 | | ... | - doublings - How many doublings to do when expanding [1]. Type: int
69 | | ...
70 | | ... | *Example:*
71 | | ...
72 | | ... | \| Find NDR and PDR intervals using optimized search \| \${0.005}
73 | | ... | \| \${0.005} \| \${30.0} \| \${1.0} \| \${2} \| ${600.0} \| ${2} \|
74 | | ...
75 | | [Arguments] | ${packet_loss_ratio}=${0.005}
76 | | ... | ${final_relative_width}=${0.005} | ${final_trial_duration}=${30.0}
77 | | ... | ${initial_trial_duration}=${1.0}
78 | | ... | ${number_of_intermediate_phases}=${2} | ${timeout}=${720.0}
79 | | ... | ${doublings}=${2}
80 | | ...
81 | | ${result} = | Perform optimized ndrpdr search | ${frame_size}
82 | | ... | ${traffic_profile} | ${20000} | ${max_rate*2}
83 | | ... | ${packet_loss_ratio} | ${final_relative_width}
84 | | ... | ${final_trial_duration} | ${initial_trial_duration}
85 | | ... | ${number_of_intermediate_phases} | timeout=${timeout}
86 | | ... | doublings=${doublings}
87 | | Display result of NDRPDR search | ${result} | ${frame_size}
88 | | Check NDRPDR interval validity | ${result.pdr_interval}
89 | | ... | ${packet_loss_ratio}
90 | | Check NDRPDR interval validity | ${result.ndr_interval}
91
92 | Find critical load using PLRsearch
93 | | [Documentation]
94 | | ... | Find boundaries for troughput (of given target loss ratio)
95 | | ... | using PLRsearch algorithm.
96 | | ... | Display results as formatted test message.
97 | | ... | Fail if computed lower bound is below minimal rate.
98 | | ... | Input rates are understood as uni-directional,
99 | | ... | reported result contains bi-directional rates.
100 | | ... | Currently, the min_rate value is hardcoded to match test teardowns.
101 | | ... | Some inputs are read from variables to streamline suites.
102 | | ...
103 | | ... | *Test (or broader scope) variables read:*
104 | | ... |   - traffic_profile - Topology type. Type: string
105 | | ... |   - frame_size - L2 Frame Size [B] or IMIX string. Type: int or str
106 | | ... |   - max_rate - Calculated unidirectional maximal transmit rate [pps].
107 | | ... |     Type: float
108 | | ...
109 | | ... | *Arguments:*
110 | | ... | - packet_loss_ratio - Accepted loss during search. Type: float
111 | | ... | - timeout - Stop when search duration is longer [s]. Type: float
112 | | ...
113 | | ... | *Example:*
114 | | ...
115 | | ... | \| Find critical load usingPLR search \| \${1e-7} \| \${1800} \|
116 | | ...
117 | | [Arguments] | ${packet_loss_ratio}=${1e-7} | ${timeout}=${1800.0}
118 | | ...
119 | | ${min_rate} = | Set Variable | ${20000}
120 | | ${average} | ${stdev} = | Perform soak search | ${frame_size}
121 | | ... | ${traffic_profile} | ${min_rate} | ${max_rate*2}
122 | | ... | ${packet_loss_ratio} | timeout=${timeout}
123 | | ${lower} | ${upper} = | Display result of soak search
124 | | ... | ${average} | ${stdev} | ${frame_size}
125 | | Should Not Be True | ${lower} < ${min_rate}
126 | | ... | Lower bound ${lower} is below bidirectional minimum ${min_rate}.
127
128 | Display single bound
129 | | [Documentation]
130 | | ... | Display one bound of NDR+PDR search,
131 | | ... | in packet per seconds (total and per stream)
132 | | ... | and Gbps total bandwidth with untagged packet.
133 | | ... | Througput is calculated as:
134 | | ... | Measured rate per stream * Total number of streams
135 | | ... | Bandwidth is calculated as:
136 | | ... | (Throughput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
137 | | ... | The given result should contain latency data as well.
138 | | ...
139 | | ... | *Arguments:*
140 | | ... | - text - Flavor text describing which bound is this. Type: string
141 | | ... | - rate_total - Total (not per stream) measured Tr [pps]. Type: float
142 | | ... | - frame_size - L2 Frame Size [B]. Type: integer
143 | | ... | - latency - Latency data to display if non-empty. Type: string
144 | | ...
145 | | ... | *Example:*
146 | | ...
147 | | ... | \| Display single bound \| NDR lower bound \| \${12345.67} \
148 | | ... | \| \${64} \| show_latency=\${EMPTY} \|
149 | | ...
150 | | [Arguments] | ${text} | ${rate_total} | ${frame_size} | ${latency}=${EMPTY}
151 | | ...
152 | | ${bandwidth_total} = | Evaluate | ${rate_total} * (${frame_size}+20)*8 / 1e9
153 | | Set Test Message | ${\n}${text}: ${rate_total} pps, | append=yes
154 | | Set Test Message | ${bandwidth_total} Gbps (untagged) | append=yes
155 | | Return From Keyword If | not """${latency}"""
156 | | Set Test Message | ${\n}LATENCY usec [min/avg/max] per stream: ${latency}
157 | | ... | append=yes
158
159 | Display result of NDRPDR search
160 | | [Documentation]
161 | | ... | Display result of NDR+PDR search, both quantities, both bounds,
162 | | ... | in packet per seconds (total and per stream)
163 | | ... | and Gbps total bandwidth with untagged packet.
164 | | ... | Througput is calculated as:
165 | | ... | Measured rate per stream * Total number of streams
166 | | ... | Bandwidth is calculated as:
167 | | ... | (Throughput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
168 | | ... | The given result should contain latency data as well.
169 | | ...
170 | | ... | *Arguments:*
171 | | ... | - result - Measured result data per stream [pps]. Type: NdrPdrResult
172 | | ... | - frame_size - L2 Frame Size [B]. Type: integer
173 | | ...
174 | | ... | *Example:*
175 | | ...
176 | | ... | \| Display result of NDRPDR search \| \${result} \| \${64} \|
177 | | ...
178 | | [Arguments] | ${result} | ${frame_size}
179 | | ...
180 | | ${frame_size} = | Get Average Frame Size | ${frame_size}
181 | | Display single bound | NDR_LOWER
182 | | ... | ${result.ndr_interval.measured_low.transmit_rate} | ${frame_size}
183 | | ... | ${result.ndr_interval.measured_low.latency}
184 | | Display single bound | NDR_UPPER
185 | | ... | ${result.ndr_interval.measured_high.transmit_rate} | ${frame_size}
186 | | Display single bound | PDR_LOWER
187 | | ... | ${result.pdr_interval.measured_low.transmit_rate} | ${frame_size}
188 | | ... | ${result.pdr_interval.measured_low.latency}
189 | | Display single bound | PDR_UPPER
190 | | ... | ${result.pdr_interval.measured_high.transmit_rate} | ${frame_size}
191
192 | Display result of soak search
193 | | [Documentation]
194 | | ... | Display result of soak search, avg+-stdev, as upper/lower bounds,
195 | | ... | in packet per seconds (total and per stream)
196 | | ... | and Gbps total bandwidth with untagged packet.
197 | | ... | Througput is calculated as:
198 | | ... | Measured rate per stream * Total number of streams
199 | | ... | Bandwidth is calculated as:
200 | | ... | (Throughput * (L2 Frame Size + IPG) * 8) / Max bitrate of NIC
201 | | ... | TODO: Do we want to report some latency data,
202 | | ... | even if not measured at the reported bounds?.
203 | | ...
204 | | ... | *Arguments:*
205 | | ... | - avg - Estimated average critical load [pps]. Type: float
206 | | ... | - stdev - Standard deviation of critical load [pps]. Type: float
207 | | ... | - frame_size - L2 Frame Size [B]. Type: integer
208 | | ...
209 | | ... | *Returns:*
210 | | ... | - Lower and upper bound of critical load [pps]. Type: 2-tuple of float
211 | | ...
212 | | ... | *Example:*
213 | | ...
214 | | ... | \| Display result of soak search \| \${100000} \| \${100} \| \${64} \|
215 | | ...
216 | | [Arguments] | ${avg} | ${stdev} | ${frame_size}
217 | | ...
218 | | ${frame_size} = | Get Average Frame Size | ${frame_size}
219 | | ${avg} = | Convert To Number | ${avg}
220 | | ${stdev} = | Convert To Number | ${stdev}
221 | | ${lower} = | Evaluate | ${avg} - ${stdev}
222 | | ${upper} = | Evaluate | ${avg} + ${stdev}
223 | | Display single bound | PLRsearch lower bound: | ${lower} | ${frame_size}
224 | | Display single bound | PLRsearch upper bound: | ${upper} | ${frame_size}
225 | | Return From Keyword | ${lower} | ${upper}
226
227 | Check NDRPDR interval validity
228 | | [Documentation]
229 | | ... | Extract loss ratio of lower bound of the interval.
230 | | ... | Fail if it does not reach the allowed value.
231 | | ...
232 | | ... | *Arguments:*
233 | | ... | - interval - Measured interval. Type: ReceiveRateInterval
234 | | ... | - packet_loss_ratio - Accepted loss (0.0 for NDR). Type: float
235 | | ...
236 | | ... | *Example:*
237 | | ...
238 | | ... | \| Check NDRPDR interval validity \| \${result.pdr_interval} \
239 | | ... | \| \${0.005} \|
240 | | ...
241 | | [Arguments] | ${interval} | ${packet_loss_ratio}=${0.0}
242 | | ...
243 | | ${lower_bound} = | Set Variable | ${interval.measured_low}
244 | | ${lower_bound_lf} = | Set Variable | ${lower_bound.loss_fraction}
245 | | Return From Keyword If | ${lower_bound_lf} <= ${packet_loss_ratio}
246 | | ${message}= | Catenate | SEPARATOR=${SPACE}
247 | | ... | Minimal rate loss fraction ${lower_bound_lf}
248 | | ... | does not reach target ${packet_loss_ratio}.
249 | | ${message_zero} = | Set Variable | Zero packets forwarded!
250 | | ${message_other} = | Set Variable | ${lower_bound.loss_count} packets lost.
251 | | ${message} = | Set Variable If | ${lower_bound_lf} >= 1.0
252 | | ... | ${message}${\n}${message_zero} | ${message}${\n}${message_other}
253 | | Fail | ${message}
254
255 | Traffic should pass with no loss
256 | | [Documentation]
257 | | ... | Send traffic at specified rate. No packet loss is accepted at loss
258 | | ... | evaluation.
259 | | ...
260 | | ... | *Arguments:*
261 | | ... | - duration - Duration of traffic run [s]. Type: integer
262 | | ... | - rate - Rate for sending packets. Type: string
263 | | ... | - frame_size - L2 Frame Size [B] or IMIX_v4_1. Type: integer/string
264 | | ... | - traffic_profile - Topology type. Type: string
265 | | ... | - fail_on_loss - If True, the keyword fails if loss occurred.
266 | | ... | Type: boolean
267 | | ...
268 | | ... | *Example:*
269 | | ...
270 | | ... | \| Traffic should pass with no loss \| 10 \| 4.0mpps \| 64 \
271 | | ... | \| 3-node-IPv4 \|
272 | | ...
273 | | [Arguments] | ${duration} | ${rate} | ${frame_size} | ${traffic_profile}
274 | | ... | ${fail_on_loss}=${True}
275 | | ...
276 | | Send traffic at specified rate | ${duration} | ${rate} | ${frame_size}
277 | | ... | ${traffic_profile}
278 | | Run Keyword If | ${fail_on_loss} | No traffic loss occurred
279
280 | Traffic should pass with maximum rate
281 | | [Documentation]
282 | | ... | Send traffic at maximum rate.
283 | | ...
284 | | ... | Some inputs are read from variables to streamline suites.
285 | | ...
286 | | ... | *Test (or broader scope) variables read:*
287 | | ... |   - traffic_profile - Topology type. Type: string
288 | | ... |   - frame_size - L2 Frame Size [B] or IMIX string. Type: int or str
289 | | ... |   - max_rate - Calculated unidirectional maximal transmit rate [pps].
290 | | ... |     Type: float
291 | | ...
292 | | ... | *Arguments:*
293 | | ... | - subsamples - How many trials in this measurement. Type: int
294 | | ... | - trial_duration - Duration of single trial [s]. Type: float
295 | | ... | - fail_no_traffic - Whether to fail on zero receive count. Type: boolean
296 | | ... | - unidirection - False if traffic is bidirectional. Type: boolean
297 | | ... | - tx_port - TX port of TG, default 0. Type: integer
298 | | ... | - rx_port - RX port of TG, default 1. Type: integer
299 | | ...
300 | | ... | *Example:*
301 | | ...
302 | | ... | \| Traffic should pass with maximum rate \| ${1} \| ${10.0} \|
303 | | ... | \| ${False} \| ${False} \| ${0} \| ${1} \|
304 | | ...
305 | | [Arguments] | ${trial_duration}=${perf_trial_duration}
306 | | ... | ${fail_no_traffic}=${True} | ${subsamples}=${perf_trial_multiplicity}
307 | | ... | ${unidirection}=${False} | ${tx_port}=${0} | ${rx_port}=${1}
308 | | ...
309 | | ${results} = | Send traffic at specified rate | ${trial_duration}
310 | | ... | ${max_rate}pps | ${frame_size} | ${traffic_profile} | ${subsamples}
311 | | ... | ${unidirection} | ${tx_port} | ${rx_port}
312 | | Set Test Message | ${\n}Maximum Receive Rate trial results
313 | | Set Test Message | in packets per second: ${results}
314 | | ... | append=yes
315 | | # TODO: Should we also report the percentage relative to transmit rate,
316 | | # so that people looking at console can decide how close to 100% it is?
317 | | Run Keyword If | ${fail_no_traffic} | Fail if no traffic forwarded
318
319 | Send traffic at specified rate
320 | | [Documentation]
321 | | ... | Send traffic at specified rate.
322 | | ... | Return list of measured receive rates.
323 | | ... | The rate argument should be TRex friendly, so it should include "pps".
324 | | ...
325 | | ... | *Arguments:*
326 | | ... | - trial_duration - Duration of single trial [s]. Type: float
327 | | ... | - rate - Rate for sending packets. Type: string
328 | | ... | - frame_size - L2 Frame Size [B]. Type: integer/string
329 | | ... | - traffic_profile - Topology type. Type: string
330 | | ... | - subsamples - How many trials in this measurement. Type: int
331 | | ... | - unidirection - False if traffic is bidirectional. Type: boolean
332 | | ... | - tx_port - TX port of TG, default 0. Type: integer
333 | | ... | - rx_port - RX port of TG, default 1. Type: integer
334 | | ...
335 | | ... | *Example:*
336 | | ...
337 | | ... | \| Send traffic at specified rate \| ${1.0} \| 4.0mpps \| 64 \
338 | | ... | \| 3-node-IPv4 \| ${10} \| ${False} \| ${0} | ${1} \|
339 | | ...
340 | | [Arguments] | ${trial_duration} | ${rate} | ${frame_size}
341 | | ... | ${traffic_profile} | ${subsamples}=${1} | ${unidirection}=${False}
342 | | ... | ${tx_port}=${0} | ${rx_port}=${1}
343 | | ...
344 | | Clear and show runtime counters with running traffic | ${trial_duration}
345 | | ... | ${rate} | ${frame_size} | ${traffic_profile}
346 | | ... | ${unidirection} | ${tx_port} | ${rx_port}
347 | | Run Keyword If | ${dut_stats}==${True} | Clear all counters on all DUTs
348 | | Run Keyword If | ${dut_stats}==${True} and ${pkt_trace}==${True}
349 | | ... | VPP Enable Traces On All DUTs | ${nodes}
350 | | Run Keyword If | ${dut_stats}==${True}
351 | | ... | VPP enable elog traces on all DUTs | ${nodes}
352 | | ${results} = | Create List
353 | | :FOR | ${i} | IN RANGE | ${subsamples}
354 | | | # The following line is skipping some default arguments,
355 | | | # that is why subsequent arguments have to be named.
356 | | | Send traffic on tg | ${trial_duration} | ${rate} | ${frame_size}
357 | | | ... | ${traffic_profile} | warmup_time=${0} | unidirection=${unidirection}
358 | | | ... | tx_port=${tx_port} | rx_port=${rx_port}
359 | | | ${rx} = | Get Received
360 | | | ${rr} = | Evaluate | ${rx} / ${trial_duration}
361 | | | Append To List | ${results} | ${rr}
362 | | Run Keyword If | ${dut_stats}==${True} | Show event logger on all DUTs
363 | | ... | ${nodes}
364 | | Run Keyword If | ${dut_stats}==${True} | Show statistics on all DUTs
365 | | ... | ${nodes}
366 | | Run Keyword If | ${dut_stats}==${True} and ${pkt_trace}==${True}
367 | | ... | Show Packet Trace On All Duts | ${nodes} | maximum=${100}
368 | | Return From Keyword | ${results}
369
370 | Clear and show runtime counters with running traffic
371 | | [Documentation]
372 | | ... | Start traffic at specified rate then clear runtime counters on all
373 | | ... | DUTs. Wait for specified amount of time and capture runtime counters
374 | | ... | on all DUTs. Finally stop traffic
375 | | ...
376 | | ... | *Arguments:*
377 | | ... | - duration - Duration of traffic run [s]. Type: integer
378 | | ... | - rate - Rate for sending packets. Type: string
379 | | ... | - frame_size - L2 Frame Size [B] or IMIX_v4_1. Type: integer/string
380 | | ... | - traffic_profile - Topology type. Type: string
381 | | ... | - unidirection - False if traffic is bidirectional. Type: boolean
382 | | ... | - tx_port - TX port of TG, default 0. Type: integer
383 | | ... | - rx_port - RX port of TG, default 1. Type: integer
384 | | ...
385 | | ... | *Example:*
386 | | ...
387 | | ... | \| Clear and show runtime counters with running traffic \| 10 \
388 | | ... | \| 4.0mpps \| 64 \| 3-node-IPv4 \| ${False} \| ${0} | ${1} \|
389 | | ...
390 | | [Arguments] | ${duration} | ${rate} | ${frame_size} | ${traffic_profile}
391 | | ... | ${unidirection}=${False} | ${tx_port}=${0} | ${rx_port}=${1}
392 | | ...
393 | | # Duration of -1 means we will stop traffic manually.
394 | | Send traffic on tg | ${-1} | ${rate} | ${frame_size} | ${traffic_profile}
395 | | ... | warmup_time=${0} | async_call=${True} | latency=${False}
396 | | ... | unidirection=${unidirection} | tx_port=${tx_port} | rx_port=${rx_port}
397 | | Run Keyword If | ${dut_stats}==${True}
398 | | ... | Clear runtime counters on all DUTs | ${nodes}
399 | | Sleep | ${duration}
400 | | Run Keyword If | ${dut_stats}==${True}
401 | | ... | Show runtime counters on all DUTs | ${nodes}
402 | | Stop traffic on tg
403
404 | Create network function CPU list
405 | | # TODO: Is there a better place for this keyword?
406 | | # It is not exactly a performance utility.
407 | | [Documentation]
408 | | ... | Create list of CPUs allocated for network function base on SUT/DUT
409 | | ... | placement and other network functions placement.
410 | | ...
411 | | ... | *Arguments:*
412 | | ... | - dut - DUT node. Type: dictionary
413 | | ... | - chains: Total number of chains. Type: integer
414 | | ... | - nodeness: Total number of nodes per chain. Type: integer
415 | | ... | - chain_id - Network function chain ID. Type: integer
416 | | ... | - node_id - Network function node ID within chain. Type: integer
417 | | ... | - mtcr - Main thread to core ratio. Type: integer
418 | | ... | - dtcr - Dataplane thread to core ratio. Type: integer
419 | | ... | - auto_scale - If True, use same amount of Dataplane threads for
420 | | ... |   network function as DUT, otherwise use single physical core for
421 | | ... |   every network function. Type: boolean
422 | | ...
423 | | ... | *Note:*
424 | | ... | KW uses test variables \${cpu_count_int} set by
425 | | ... | "Add worker threads and rxqueues to all DUTs"
426 | | ...
427 | | ... | *Example:*
428 | | ...
429 | | ... | \| Create network function CPU list \| ${nodes['DUT1']} \
430 | | ... | \| 1 \| 1 \| 1 \| 1 \|
431 | | ...
432 | | [Arguments] | ${dut} | ${chains}=${1} | ${nodeness}=${1} | ${chain_id}=${1}
433 | | ... | ${node_id}=${1} | ${mtcr}=${2} | ${dtcr}=${1} | ${auto_scale}=${False}
434 | | ...
435 | | ${sut_sc}= | Set Variable | ${1}
436 | | ${dut_mc}= | Set Variable | ${1}
437 | | ${dut_dc}= | Set Variable | ${cpu_count_int}
438 | | ${skip}= | Evaluate | ${sut_sc} + ${dut_mc} + ${dut_dc}
439 | | ${dtc}= | Set Variable If | ${auto_scale} | ${cpu_count_int} | ${1}
440 | | ${if1_status} | ${value}= | Run Keyword And Ignore Error
441 | | ... | Variable Should Exist | ${${dut}_if1}
442 | | @{if_list}= | Run Keyword If | '${if1_status}' == 'PASS'
443 | | ... | Create List | ${${dut}_if1}
444 | | ... | ELSE | Create List | ${${dut}_if1_1} | ${${dut}_if1_2}
445 | | ${if2_status} | ${value}= | Run Keyword And Ignore Error
446 | | ... | Variable Should Exist | ${${dut}_if2}
447 | | Run Keyword If | '${if2_status}' == 'PASS'
448 | | ... | Append To List | ${if_list} | ${${dut}_if2}
449 | | ... | ELSE | Append To List | ${if_list} | ${${dut}_if2_1} | ${${dut}_if2_2}
450 | | ${dut_numa}= | Get interfaces numa node | ${nodes['${dut}']} | @{if_list}
451 | | ${nf_cpus}= | Cpu slice of list for NF | node=${nodes['${dut}']}
452 | | ... | cpu_node=${dut_numa} | chains=${chains} | nodeness=${nodeness}
453 | | ... | chain_id=${chain_id} | node_id=${node_id} | mtcr=${mtcr}
454 | | ... | dtcr=${dtcr} | dtc=${dtc} | skip_cnt=${skip}
455 | | Return From Keyword | ${nf_cpus}