2 Documentation Test suite for Stats Manager flows collection
3 Library OperatingSystem
7 Library ../../../../csit/libraries/XmlComparator.py
8 Variables ../../../../csit/variables/Variables.py
9 Library ../../../../csit/libraries/RequestsLibrary.py
10 Library ../../../../csit/libraries/Common.py
11 Suite Setup Initialization Phase
12 Suite Teardown Teardown Phase
16 ${XmlsDir}= ${CURDIR}/../../../../csit/variables/xmls
18 ${switch_name}= s${switch_idx}
19 @{flowlist0}= f1.xml f2.xml f3.xml f4.xml f5.xml f6.xml f7.xml f8.xml f9.xml f10.xml f11.xml f12.xml f13.xml f14.xml f15.xml f16.xml f17.xml f18.xml f19.xml f20.xml f21.xml f22.xml f23.xml f24.xml f25.xml f31.xml f36.xml f38.xml f43.xml f45.xml f47.xml f101.xml f102.xml f103.xml f104.xml f105.xml f106.xml f107.xml f108.xml f109.xml f110.xml f113.xml f201.xml f202.xml f203.xml f204.xml f205.xml f206.xml f209.xml f214.xml f218.xml f219.xml f220.xml
23 Test Add Flows Group 0
24 [Documentation] Add all flows and waits for SM to collect data
25 :FOR ${flowfile} IN @{flowlist0}
27 \ Init Flow Variables ${flowfile}
28 \ Run Keyword And Continue On Failure Add Flow
30 Write dpctl dump-flows -O OpenFlow13
35 [Documentation] Checks if flow is configured and operational
36 Init Flow Variables f1.xml
37 Check Config Flow ${False} ${data}
38 Check Operational Table ${True} ${data}
40 [Documentation] Checks if flow is configured and operational
41 Init Flow Variables f2.xml
42 Check Config Flow ${False} ${data}
43 Check Operational Table ${True} ${data}
45 [Documentation] Checks if flow is configured and operational
46 Init Flow Variables f3.xml
47 Check Config Flow ${False} ${data}
48 Check Operational Table ${True} ${data}
50 [Documentation] Checks if flow is configured and operational
51 Init Flow Variables f4.xml
52 Check Config Flow ${False} ${data}
53 Check Operational Table ${True} ${data}
55 [Documentation] Checks if flow is configured and operational
56 Init Flow Variables f5.xml
57 Check Config Flow ${False} ${data}
58 Check Operational Table ${True} ${data}
60 [Documentation] Checks if flow is configured and operational
61 Init Flow Variables f6.xml
62 Check Config Flow ${False} ${data}
63 Check Operational Table ${True} ${data}
65 [Documentation] Checks if flow is configured and operational
66 Init Flow Variables f7.xml
67 Check Config Flow ${False} ${data}
68 Check Operational Table ${True} ${data}
70 [Documentation] Checks if flow is configured and operational
71 Init Flow Variables f8.xml
72 Check Config Flow ${False} ${data}
73 Check Operational Table ${True} ${data}
75 [Documentation] Checks if flow is configured and operational
76 Init Flow Variables f9.xml
77 Check Config Flow ${False} ${data}
78 Check Operational Table ${True} ${data}
80 [Documentation] Checks if flow is configured and operational
81 Init Flow Variables f10.xml
82 Check Config Flow ${False} ${data}
83 Check Operational Table ${True} ${data}
85 [Documentation] Checks if flow is configured and operational
86 Init Flow Variables f11.xml
87 Check Config Flow ${False} ${data}
88 Check Operational Table ${True} ${data}
90 [Documentation] Checks if flow is configured and operational
91 Init Flow Variables f12.xml
92 Check Config Flow ${False} ${data}
93 Check Operational Table ${True} ${data}
95 [Documentation] Checks if flow is configured and operational
96 Init Flow Variables f13.xml
97 Check Config Flow ${False} ${data}
98 Check Operational Table ${True} ${data}
100 [Documentation] Checks if flow is configured and operational
101 Init Flow Variables f14.xml
102 Check Config Flow ${False} ${data}
103 Check Operational Table ${True} ${data}
104 Test Is Flow 15 Added
105 [Documentation] Checks if flow is configured and operational
106 Init Flow Variables f15.xml
107 Check Config Flow ${False} ${data}
108 Check Operational Table ${True} ${data}
109 Test Is Flow 16 Added
110 [Documentation] Checks if flow is configured and operational
111 Init Flow Variables f16.xml
112 Check Config Flow ${False} ${data}
113 Check Operational Table ${True} ${data}
114 Test Is Flow 17 Added
115 [Documentation] Checks if flow is configured and operational
116 Init Flow Variables f17.xml
117 Check Config Flow ${False} ${data}
118 Check Operational Table ${True} ${data}
119 Test Is Flow 18 Added
120 [Documentation] Checks if flow is configured and operational
121 Init Flow Variables f18.xml
122 Check Config Flow ${False} ${data}
123 Check Operational Table ${True} ${data}
124 Test Is Flow 19 Added
125 [Documentation] Checks if flow is configured and operational
126 Init Flow Variables f19.xml
127 Check Config Flow ${False} ${data}
128 Check Operational Table ${True} ${data}
129 Test Is Flow 20 Added
130 [Documentation] Checks if flow is configured and operational
131 Init Flow Variables f20.xml
132 Check Config Flow ${False} ${data}
133 Check Operational Table ${True} ${data}
134 Test Is Flow 21 Added
135 [Documentation] Checks if flow is configured and operational
136 Init Flow Variables f21.xml
137 Check Config Flow ${False} ${data}
138 Check Operational Table ${True} ${data}
139 Test Is Flow 22 Added
140 [Documentation] Checks if flow is configured and operational
141 Init Flow Variables f22.xml
142 Check Config Flow ${False} ${data}
143 Check Operational Table ${True} ${data}
144 Test Is Flow 23 Added
145 [Documentation] Checks if flow is configured and operational
146 Init Flow Variables f23.xml
147 Check Config Flow ${False} ${data}
148 Check Operational Table ${True} ${data}
149 Test Is Flow 24 Added
150 [Documentation] Checks if flow is configured and operational
151 Init Flow Variables f24.xml
152 Check Config Flow ${False} ${data}
153 Check Operational Table ${True} ${data}
154 Test Is Flow 25 Added
155 [Documentation] Checks if flow is configured and operational
156 Init Flow Variables f25.xml
157 Check Config Flow ${False} ${data}
158 Check Operational Table ${True} ${data}
159 Test Is Flow 31 Added
160 [Documentation] Checks if flow is configured and operational
161 Init Flow Variables f31.xml
162 Check Config Flow ${False} ${data}
163 Check Operational Table ${True} ${data}
164 Test Is Flow 36 Added
165 [Documentation] Checks if flow is configured and operational
166 Init Flow Variables f36.xml
167 Check Config Flow ${False} ${data}
168 Check Operational Table ${True} ${data}
169 Test Is Flow 38 Added
170 [Documentation] Checks if flow is configured and operational
171 Init Flow Variables f38.xml
172 Check Config Flow ${False} ${data}
173 Check Operational Table ${True} ${data}
174 Test Is Flow 43 Added
175 [Documentation] Checks if flow is configured and operational
176 Init Flow Variables f43.xml
177 Check Config Flow ${False} ${data}
178 Check Operational Table ${True} ${data}
179 Test Is Flow 45 Added
180 [Documentation] Checks if flow is configured and operational
181 Init Flow Variables f45.xml
182 Check Config Flow ${False} ${data}
183 Check Operational Table ${True} ${data}
184 Test Is Flow 47 Added
185 [Documentation] Checks if flow is configured and operational
186 Init Flow Variables f47.xml
187 Check Config Flow ${False} ${data}
188 Check Operational Table ${True} ${data}
189 Test Is Flow 101 Added
190 [Documentation] Checks if flow is configured and operational
191 Init Flow Variables f101.xml
192 Check Config Flow ${False} ${data}
193 Check Operational Table ${True} ${data}
194 Test Is Flow 102 Added
195 [Documentation] Checks if flow is configured and operational
196 Init Flow Variables f102.xml
197 Check Config Flow ${False} ${data}
198 Check Operational Table ${True} ${data}
199 Test Is Flow 103 Added
200 [Documentation] Checks if flow is configured and operational
201 Init Flow Variables f103.xml
202 Check Config Flow ${False} ${data}
203 Check Operational Table ${True} ${data}
204 Test Is Flow 104 Added
205 [Documentation] Checks if flow is configured and operational
206 Init Flow Variables f104.xml
207 Check Config Flow ${False} ${data}
208 Check Operational Table ${True} ${data}
209 Test Is Flow 105 Added
210 [Documentation] Checks if flow is configured and operational
211 Init Flow Variables f105.xml
212 Check Config Flow ${False} ${data}
213 Check Operational Table ${True} ${data}
214 Test Is Flow 106 Added
215 [Documentation] Checks if flow is configured and operational
216 Init Flow Variables f106.xml
217 Check Config Flow ${False} ${data}
218 Check Operational Table ${True} ${data}
219 Test Is Flow 107 Added
220 [Documentation] Checks if flow is configured and operational
221 Init Flow Variables f107.xml
222 Check Config Flow ${False} ${data}
223 Check Operational Table ${True} ${data}
224 Test Is Flow 108 Added
225 [Documentation] Checks if flow is configured and operational
226 Init Flow Variables f108.xml
227 Check Config Flow ${False} ${data}
228 Check Operational Table ${True} ${data}
229 Test Is Flow 109 Added
230 [Documentation] Checks if flow is configured and operational
231 Init Flow Variables f109.xml
232 Check Config Flow ${False} ${data}
233 Check Operational Table ${True} ${data}
234 Test Is Flow 110 Added
235 [Documentation] Checks if flow is configured and operational
236 Init Flow Variables f110.xml
237 Check Config Flow ${False} ${data}
238 Check Operational Table ${True} ${data}
239 Test Is Flow 113 Added
240 [Documentation] Checks if flow is configured and operational
241 Init Flow Variables f113.xml
242 Check Config Flow ${False} ${data}
243 Check Operational Table ${True} ${data}
244 Test Is Flow 201 Added
245 [Documentation] Checks if flow is configured and operational
246 Init Flow Variables f201.xml
247 Check Config Flow ${False} ${data}
248 Check Operational Table ${True} ${data}
249 Test Is Flow 202 Added
250 [Documentation] Checks if flow is configured and operational
251 Init Flow Variables f202.xml
252 Check Config Flow ${False} ${data}
253 Check Operational Table ${True} ${data}
254 Test Is Flow 203 Added
255 [Documentation] Checks if flow is configured and operational
256 Init Flow Variables f203.xml
257 Check Config Flow ${False} ${data}
258 Check Operational Table ${True} ${data}
259 Test Is Flow 204 Added
260 [Documentation] Checks if flow is configured and operational
261 Init Flow Variables f204.xml
262 Check Config Flow ${False} ${data}
263 Check Operational Table ${True} ${data}
264 Test Is Flow 205 Added
265 [Documentation] Checks if flow is configured and operational
266 Init Flow Variables f205.xml
267 Check Config Flow ${False} ${data}
268 Check Operational Table ${True} ${data}
269 Test Is Flow 206 Added
270 [Documentation] Checks if flow is configured and operational
271 Init Flow Variables f206.xml
272 Check Config Flow ${False} ${data}
273 Check Operational Table ${True} ${data}
274 Test Is Flow 209 Added
275 [Documentation] Checks if flow is configured and operational
276 Init Flow Variables f209.xml
277 Check Config Flow ${False} ${data}
278 Check Operational Table ${True} ${data}
279 Test Is Flow 214 Added
280 [Documentation] Checks if flow is configured and operational
281 Init Flow Variables f214.xml
282 Check Config Flow ${False} ${data}
283 Check Operational Table ${True} ${data}
284 Test Is Flow 218 Added
285 [Documentation] Checks if flow is configured and operational
286 Init Flow Variables f218.xml
287 Check Config Flow ${False} ${data}
288 Check Operational Table ${True} ${data}
289 Test Is Flow 219 Added
290 [Documentation] Checks if flow is configured and operational
291 Init Flow Variables f219.xml
292 Check Config Flow ${False} ${data}
293 Check Operational Table ${True} ${data}
294 Test Is Flow 220 Added
295 [Documentation] Checks if flow is configured and operational
296 Init Flow Variables f220.xml
297 Check Config Flow ${False} ${data}
298 Check Operational Table ${True} ${data}
299 Test Update Flows Group 0
300 [Documentation] Update all flows and waits for SM to collect data
301 :FOR ${flowfile} IN @{flowlist0}
303 \ Init Flow Variables ${flowfile}
304 \ Run Keyword And Continue On Failure Update Flow
306 Write dpctl dump-flows -O OpenFlow13
310 Test Is Flow 1 Updated
311 [Documentation] Checks if flow is configured and operational
312 Init Flow Variables f1.xml
313 Check Config Flow ${False} ${upddata}
314 Check Operational Table ${True} ${upddata}
315 Test Is Flow 2 Updated
316 [Documentation] Checks if flow is configured and operational
317 Init Flow Variables f2.xml
318 Check Config Flow ${False} ${upddata}
319 Check Operational Table ${True} ${upddata}
320 Test Is Flow 3 Updated
321 [Documentation] Checks if flow is configured and operational
322 Init Flow Variables f3.xml
323 Check Config Flow ${False} ${upddata}
324 Check Operational Table ${True} ${upddata}
325 Test Is Flow 4 Updated
326 [Documentation] Checks if flow is configured and operational
327 Init Flow Variables f4.xml
328 Check Config Flow ${False} ${upddata}
329 Check Operational Table ${True} ${upddata}
330 Test Is Flow 5 Updated
331 [Documentation] Checks if flow is configured and operational
332 Init Flow Variables f5.xml
333 Check Config Flow ${False} ${upddata}
334 Check Operational Table ${True} ${upddata}
335 Test Is Flow 6 Updated
336 [Documentation] Checks if flow is configured and operational
337 Init Flow Variables f6.xml
338 Check Config Flow ${False} ${upddata}
339 Check Operational Table ${True} ${upddata}
340 Test Is Flow 7 Updated
341 [Documentation] Checks if flow is configured and operational
342 Init Flow Variables f7.xml
343 Check Config Flow ${False} ${upddata}
344 Check Operational Table ${True} ${upddata}
345 Test Is Flow 8 Updated
346 [Documentation] Checks if flow is configured and operational
347 Init Flow Variables f8.xml
348 Check Config Flow ${False} ${upddata}
349 Check Operational Table ${True} ${upddata}
350 Test Is Flow 9 Updated
351 [Documentation] Checks if flow is configured and operational
352 Init Flow Variables f9.xml
353 Check Config Flow ${False} ${upddata}
354 Check Operational Table ${True} ${upddata}
355 Test Is Flow 10 Updated
356 [Documentation] Checks if flow is configured and operational
357 Init Flow Variables f10.xml
358 Check Config Flow ${False} ${upddata}
359 Check Operational Table ${True} ${upddata}
360 Test Is Flow 11 Updated
361 [Documentation] Checks if flow is configured and operational
362 Init Flow Variables f11.xml
363 Check Config Flow ${False} ${upddata}
364 Check Operational Table ${True} ${upddata}
365 Test Is Flow 12 Updated
366 [Documentation] Checks if flow is configured and operational
367 Init Flow Variables f12.xml
368 Check Config Flow ${False} ${upddata}
369 Check Operational Table ${True} ${upddata}
370 Test Is Flow 13 Updated
371 [Documentation] Checks if flow is configured and operational
372 Init Flow Variables f13.xml
373 Check Config Flow ${False} ${upddata}
374 Check Operational Table ${True} ${upddata}
375 Test Is Flow 14 Updated
376 [Documentation] Checks if flow is configured and operational
377 Init Flow Variables f14.xml
378 Check Config Flow ${False} ${upddata}
379 Check Operational Table ${True} ${upddata}
380 Test Is Flow 15 Updated
381 [Documentation] Checks if flow is configured and operational
382 Init Flow Variables f15.xml
383 Check Config Flow ${False} ${upddata}
384 Check Operational Table ${True} ${upddata}
385 Test Is Flow 16 Updated
386 [Documentation] Checks if flow is configured and operational
387 Init Flow Variables f16.xml
388 Check Config Flow ${False} ${upddata}
389 Check Operational Table ${True} ${upddata}
390 Test Is Flow 17 Updated
391 [Documentation] Checks if flow is configured and operational
392 Init Flow Variables f17.xml
393 Check Config Flow ${False} ${upddata}
394 Check Operational Table ${True} ${upddata}
395 Test Is Flow 18 Updated
396 [Documentation] Checks if flow is configured and operational
397 Init Flow Variables f18.xml
398 Check Config Flow ${False} ${upddata}
399 Check Operational Table ${True} ${upddata}
400 Test Is Flow 19 Updated
401 [Documentation] Checks if flow is configured and operational
402 Init Flow Variables f19.xml
403 Check Config Flow ${False} ${upddata}
404 Check Operational Table ${True} ${upddata}
405 Test Is Flow 20 Updated
406 [Documentation] Checks if flow is configured and operational
407 Init Flow Variables f20.xml
408 Check Config Flow ${False} ${upddata}
409 Check Operational Table ${True} ${upddata}
410 Test Is Flow 21 Updated
411 [Documentation] Checks if flow is configured and operational
412 Init Flow Variables f21.xml
413 Check Config Flow ${False} ${upddata}
414 Check Operational Table ${True} ${upddata}
415 Test Is Flow 22 Updated
416 [Documentation] Checks if flow is configured and operational
417 Init Flow Variables f22.xml
418 Check Config Flow ${False} ${upddata}
419 Check Operational Table ${True} ${upddata}
420 Test Is Flow 23 Updated
421 [Documentation] Checks if flow is configured and operational
422 Init Flow Variables f23.xml
423 Check Config Flow ${False} ${upddata}
424 Check Operational Table ${True} ${upddata}
425 Test Is Flow 24 Updated
426 [Documentation] Checks if flow is configured and operational
427 Init Flow Variables f24.xml
428 Check Config Flow ${False} ${upddata}
429 Check Operational Table ${True} ${upddata}
430 Test Is Flow 25 Updated
431 [Documentation] Checks if flow is configured and operational
432 Init Flow Variables f25.xml
433 Check Config Flow ${False} ${upddata}
434 Check Operational Table ${True} ${upddata}
435 Test Is Flow 31 Updated
436 [Documentation] Checks if flow is configured and operational
437 Init Flow Variables f31.xml
438 Check Config Flow ${False} ${upddata}
439 Check Operational Table ${True} ${upddata}
440 Test Is Flow 36 Updated
441 [Documentation] Checks if flow is configured and operational
442 Init Flow Variables f36.xml
443 Check Config Flow ${False} ${upddata}
444 Check Operational Table ${True} ${upddata}
445 Test Is Flow 38 Updated
446 [Documentation] Checks if flow is configured and operational
447 Init Flow Variables f38.xml
448 Check Config Flow ${False} ${upddata}
449 Check Operational Table ${True} ${upddata}
450 Test Is Flow 43 Updated
451 [Documentation] Checks if flow is configured and operational
452 Init Flow Variables f43.xml
453 Check Config Flow ${False} ${upddata}
454 Check Operational Table ${True} ${upddata}
455 Test Is Flow 45 Updated
456 [Documentation] Checks if flow is configured and operational
457 Init Flow Variables f45.xml
458 Check Config Flow ${False} ${upddata}
459 Check Operational Table ${True} ${upddata}
460 Test Is Flow 47 Updated
461 [Documentation] Checks if flow is configured and operational
462 Init Flow Variables f47.xml
463 Check Config Flow ${False} ${upddata}
464 Check Operational Table ${True} ${upddata}
465 Test Is Flow 101 Updated
466 [Documentation] Checks if flow is configured and operational
467 Init Flow Variables f101.xml
468 Check Config Flow ${False} ${upddata}
469 Check Operational Table ${True} ${upddata}
470 Test Is Flow 102 Updated
471 [Documentation] Checks if flow is configured and operational
472 Init Flow Variables f102.xml
473 Check Config Flow ${False} ${upddata}
474 Check Operational Table ${True} ${upddata}
475 Test Is Flow 103 Updated
476 [Documentation] Checks if flow is configured and operational
477 Init Flow Variables f103.xml
478 Check Config Flow ${False} ${upddata}
479 Check Operational Table ${True} ${upddata}
480 Test Is Flow 104 Updated
481 [Documentation] Checks if flow is configured and operational
482 Init Flow Variables f104.xml
483 Check Config Flow ${False} ${upddata}
484 Check Operational Table ${True} ${upddata}
485 Test Is Flow 105 Updated
486 [Documentation] Checks if flow is configured and operational
487 Init Flow Variables f105.xml
488 Check Config Flow ${False} ${upddata}
489 Check Operational Table ${True} ${upddata}
490 Test Is Flow 106 Updated
491 [Documentation] Checks if flow is configured and operational
492 Init Flow Variables f106.xml
493 Check Config Flow ${False} ${upddata}
494 Check Operational Table ${True} ${upddata}
495 Test Is Flow 107 Updated
496 [Documentation] Checks if flow is configured and operational
497 Init Flow Variables f107.xml
498 Check Config Flow ${False} ${upddata}
499 Check Operational Table ${True} ${upddata}
500 Test Is Flow 108 Updated
501 [Documentation] Checks if flow is configured and operational
502 Init Flow Variables f108.xml
503 Check Config Flow ${False} ${upddata}
504 Check Operational Table ${True} ${upddata}
505 Test Is Flow 109 Updated
506 [Documentation] Checks if flow is configured and operational
507 Init Flow Variables f109.xml
508 Check Config Flow ${False} ${upddata}
509 Check Operational Table ${True} ${upddata}
510 Test Is Flow 110 Updated
511 [Documentation] Checks if flow is configured and operational
512 Init Flow Variables f110.xml
513 Check Config Flow ${False} ${upddata}
514 Check Operational Table ${True} ${upddata}
515 Test Is Flow 113 Updated
516 [Documentation] Checks if flow is configured and operational
517 Init Flow Variables f113.xml
518 Check Config Flow ${False} ${upddata}
519 Check Operational Table ${True} ${upddata}
520 Test Is Flow 201 Updated
521 [Documentation] Checks if flow is configured and operational
522 Init Flow Variables f201.xml
523 Check Config Flow ${False} ${upddata}
524 Check Operational Table ${True} ${upddata}
525 Test Is Flow 202 Updated
526 [Documentation] Checks if flow is configured and operational
527 Init Flow Variables f202.xml
528 Check Config Flow ${False} ${upddata}
529 Check Operational Table ${True} ${upddata}
530 Test Is Flow 203 Updated
531 [Documentation] Checks if flow is configured and operational
532 Init Flow Variables f203.xml
533 Check Config Flow ${False} ${upddata}
534 Check Operational Table ${True} ${upddata}
535 Test Is Flow 204 Updated
536 [Documentation] Checks if flow is configured and operational
537 Init Flow Variables f204.xml
538 Check Config Flow ${False} ${upddata}
539 Check Operational Table ${True} ${upddata}
540 Test Is Flow 205 Updated
541 [Documentation] Checks if flow is configured and operational
542 Init Flow Variables f205.xml
543 Check Config Flow ${False} ${upddata}
544 Check Operational Table ${True} ${upddata}
545 Test Is Flow 206 Updated
546 [Documentation] Checks if flow is configured and operational
547 Init Flow Variables f206.xml
548 Check Config Flow ${False} ${upddata}
549 Check Operational Table ${True} ${upddata}
550 Test Is Flow 209 Updated
551 [Documentation] Checks if flow is configured and operational
552 Init Flow Variables f209.xml
553 Check Config Flow ${False} ${upddata}
554 Check Operational Table ${True} ${upddata}
555 Test Is Flow 214 Updated
556 [Documentation] Checks if flow is configured and operational
557 Init Flow Variables f214.xml
558 Check Config Flow ${False} ${upddata}
559 Check Operational Table ${True} ${upddata}
560 Test Is Flow 218 Updated
561 [Documentation] Checks if flow is configured and operational
562 Init Flow Variables f218.xml
563 Check Config Flow ${False} ${upddata}
564 Check Operational Table ${True} ${upddata}
565 Test Is Flow 219 Updated
566 [Documentation] Checks if flow is configured and operational
567 Init Flow Variables f219.xml
568 Check Config Flow ${False} ${upddata}
569 Check Operational Table ${True} ${upddata}
570 Test Is Flow 220 Updated
571 [Documentation] Checks if flow is configured and operational
572 Init Flow Variables f220.xml
573 Check Config Flow ${False} ${upddata}
574 Check Operational Table ${True} ${upddata}
575 Test Delete Flows Group 0
576 [Documentation] Delete all flows and waits for SM to collect data
577 :FOR ${flowfile} IN @{flowlist0}
579 \ Init Flow Variables ${flowfile}
580 \ Run Keyword And Continue On Failure Delete Flow
582 Write dpctl dump-flows -O OpenFlow13
586 Test Is Flow 1 Deleted
587 [Documentation] Checks if flow is not configured and operational
588 Init Flow Variables f1.xml
589 Check Config Flow ${False} ${upddata}
590 Check Operational Table ${False} ${upddata}
591 Test Is Flow 2 Deleted
592 [Documentation] Checks if flow is not configured and operational
593 Init Flow Variables f2.xml
594 Check Config Flow ${False} ${upddata}
595 Check Operational Table ${False} ${upddata}
596 Test Is Flow 3 Deleted
597 [Documentation] Checks if flow is not configured and operational
598 Init Flow Variables f3.xml
599 Check Config Flow ${False} ${upddata}
600 Check Operational Table ${False} ${upddata}
601 Test Is Flow 4 Deleted
602 [Documentation] Checks if flow is not configured and operational
603 Init Flow Variables f4.xml
604 Check Config Flow ${False} ${upddata}
605 Check Operational Table ${False} ${upddata}
606 Test Is Flow 5 Deleted
607 [Documentation] Checks if flow is not configured and operational
608 Init Flow Variables f5.xml
609 Check Config Flow ${False} ${upddata}
610 Check Operational Table ${False} ${upddata}
611 Test Is Flow 6 Deleted
612 [Documentation] Checks if flow is not configured and operational
613 Init Flow Variables f6.xml
614 Check Config Flow ${False} ${upddata}
615 Check Operational Table ${False} ${upddata}
616 Test Is Flow 7 Deleted
617 [Documentation] Checks if flow is not configured and operational
618 Init Flow Variables f7.xml
619 Check Config Flow ${False} ${upddata}
620 Check Operational Table ${False} ${upddata}
621 Test Is Flow 8 Deleted
622 [Documentation] Checks if flow is not configured and operational
623 Init Flow Variables f8.xml
624 Check Config Flow ${False} ${upddata}
625 Check Operational Table ${False} ${upddata}
626 Test Is Flow 9 Deleted
627 [Documentation] Checks if flow is not configured and operational
628 Init Flow Variables f9.xml
629 Check Config Flow ${False} ${upddata}
630 Check Operational Table ${False} ${upddata}
631 Test Is Flow 10 Deleted
632 [Documentation] Checks if flow is not configured and operational
633 Init Flow Variables f10.xml
634 Check Config Flow ${False} ${upddata}
635 Check Operational Table ${False} ${upddata}
636 Test Is Flow 11 Deleted
637 [Documentation] Checks if flow is not configured and operational
638 Init Flow Variables f11.xml
639 Check Config Flow ${False} ${upddata}
640 Check Operational Table ${False} ${upddata}
641 Test Is Flow 12 Deleted
642 [Documentation] Checks if flow is not configured and operational
643 Init Flow Variables f12.xml
644 Check Config Flow ${False} ${upddata}
645 Check Operational Table ${False} ${upddata}
646 Test Is Flow 13 Deleted
647 [Documentation] Checks if flow is not configured and operational
648 Init Flow Variables f13.xml
649 Check Config Flow ${False} ${upddata}
650 Check Operational Table ${False} ${upddata}
651 Test Is Flow 14 Deleted
652 [Documentation] Checks if flow is not configured and operational
653 Init Flow Variables f14.xml
654 Check Config Flow ${False} ${upddata}
655 Check Operational Table ${False} ${upddata}
656 Test Is Flow 15 Deleted
657 [Documentation] Checks if flow is not configured and operational
658 Init Flow Variables f15.xml
659 Check Config Flow ${False} ${upddata}
660 Check Operational Table ${False} ${upddata}
661 Test Is Flow 16 Deleted
662 [Documentation] Checks if flow is not configured and operational
663 Init Flow Variables f16.xml
664 Check Config Flow ${False} ${upddata}
665 Check Operational Table ${False} ${upddata}
666 Test Is Flow 17 Deleted
667 [Documentation] Checks if flow is not configured and operational
668 Init Flow Variables f17.xml
669 Check Config Flow ${False} ${upddata}
670 Check Operational Table ${False} ${upddata}
671 Test Is Flow 18 Deleted
672 [Documentation] Checks if flow is not configured and operational
673 Init Flow Variables f18.xml
674 Check Config Flow ${False} ${upddata}
675 Check Operational Table ${False} ${upddata}
676 Test Is Flow 19 Deleted
677 [Documentation] Checks if flow is not configured and operational
678 Init Flow Variables f19.xml
679 Check Config Flow ${False} ${upddata}
680 Check Operational Table ${False} ${upddata}
681 Test Is Flow 20 Deleted
682 [Documentation] Checks if flow is not configured and operational
683 Init Flow Variables f20.xml
684 Check Config Flow ${False} ${upddata}
685 Check Operational Table ${False} ${upddata}
686 Test Is Flow 21 Deleted
687 [Documentation] Checks if flow is not configured and operational
688 Init Flow Variables f21.xml
689 Check Config Flow ${False} ${upddata}
690 Check Operational Table ${False} ${upddata}
691 Test Is Flow 22 Deleted
692 [Documentation] Checks if flow is not configured and operational
693 Init Flow Variables f22.xml
694 Check Config Flow ${False} ${upddata}
695 Check Operational Table ${False} ${upddata}
696 Test Is Flow 23 Deleted
697 [Documentation] Checks if flow is not configured and operational
698 Init Flow Variables f23.xml
699 Check Config Flow ${False} ${upddata}
700 Check Operational Table ${False} ${upddata}
701 Test Is Flow 24 Deleted
702 [Documentation] Checks if flow is not configured and operational
703 Init Flow Variables f24.xml
704 Check Config Flow ${False} ${upddata}
705 Check Operational Table ${False} ${upddata}
706 Test Is Flow 25 Deleted
707 [Documentation] Checks if flow is not configured and operational
708 Init Flow Variables f25.xml
709 Check Config Flow ${False} ${upddata}
710 Check Operational Table ${False} ${upddata}
711 Test Is Flow 31 Deleted
712 [Documentation] Checks if flow is not configured and operational
713 Init Flow Variables f31.xml
714 Check Config Flow ${False} ${upddata}
715 Check Operational Table ${False} ${upddata}
716 Test Is Flow 36 Deleted
717 [Documentation] Checks if flow is not configured and operational
718 Init Flow Variables f36.xml
719 Check Config Flow ${False} ${upddata}
720 Check Operational Table ${False} ${upddata}
721 Test Is Flow 38 Deleted
722 [Documentation] Checks if flow is not configured and operational
723 Init Flow Variables f38.xml
724 Check Config Flow ${False} ${upddata}
725 Check Operational Table ${False} ${upddata}
726 Test Is Flow 43 Deleted
727 [Documentation] Checks if flow is not configured and operational
728 Init Flow Variables f43.xml
729 Check Config Flow ${False} ${upddata}
730 Check Operational Table ${False} ${upddata}
731 Test Is Flow 45 Deleted
732 [Documentation] Checks if flow is not configured and operational
733 Init Flow Variables f45.xml
734 Check Config Flow ${False} ${upddata}
735 Check Operational Table ${False} ${upddata}
736 Test Is Flow 47 Deleted
737 [Documentation] Checks if flow is not configured and operational
738 Init Flow Variables f47.xml
739 Check Config Flow ${False} ${upddata}
740 Check Operational Table ${False} ${upddata}
741 Test Is Flow 101 Deleted
742 [Documentation] Checks if flow is not configured and operational
743 Init Flow Variables f101.xml
744 Check Config Flow ${False} ${upddata}
745 Check Operational Table ${False} ${upddata}
746 Test Is Flow 102 Deleted
747 [Documentation] Checks if flow is not configured and operational
748 Init Flow Variables f102.xml
749 Check Config Flow ${False} ${upddata}
750 Check Operational Table ${False} ${upddata}
751 Test Is Flow 103 Deleted
752 [Documentation] Checks if flow is not configured and operational
753 Init Flow Variables f103.xml
754 Check Config Flow ${False} ${upddata}
755 Check Operational Table ${False} ${upddata}
756 Test Is Flow 104 Deleted
757 [Documentation] Checks if flow is not configured and operational
758 Init Flow Variables f104.xml
759 Check Config Flow ${False} ${upddata}
760 Check Operational Table ${False} ${upddata}
761 Test Is Flow 105 Deleted
762 [Documentation] Checks if flow is not configured and operational
763 Init Flow Variables f105.xml
764 Check Config Flow ${False} ${upddata}
765 Check Operational Table ${False} ${upddata}
766 Test Is Flow 106 Deleted
767 [Documentation] Checks if flow is not configured and operational
768 Init Flow Variables f106.xml
769 Check Config Flow ${False} ${upddata}
770 Check Operational Table ${False} ${upddata}
771 Test Is Flow 107 Deleted
772 [Documentation] Checks if flow is not configured and operational
773 Init Flow Variables f107.xml
774 Check Config Flow ${False} ${upddata}
775 Check Operational Table ${False} ${upddata}
776 Test Is Flow 108 Deleted
777 [Documentation] Checks if flow is not configured and operational
778 Init Flow Variables f108.xml
779 Check Config Flow ${False} ${upddata}
780 Check Operational Table ${False} ${upddata}
781 Test Is Flow 109 Deleted
782 [Documentation] Checks if flow is not configured and operational
783 Init Flow Variables f109.xml
784 Check Config Flow ${False} ${upddata}
785 Check Operational Table ${False} ${upddata}
786 Test Is Flow 110 Deleted
787 [Documentation] Checks if flow is not configured and operational
788 Init Flow Variables f110.xml
789 Check Config Flow ${False} ${upddata}
790 Check Operational Table ${False} ${upddata}
791 Test Is Flow 113 Deleted
792 [Documentation] Checks if flow is not configured and operational
793 Init Flow Variables f113.xml
794 Check Config Flow ${False} ${upddata}
795 Check Operational Table ${False} ${upddata}
796 Test Is Flow 201 Deleted
797 [Documentation] Checks if flow is not configured and operational
798 Init Flow Variables f201.xml
799 Check Config Flow ${False} ${upddata}
800 Check Operational Table ${False} ${upddata}
801 Test Is Flow 202 Deleted
802 [Documentation] Checks if flow is not configured and operational
803 Init Flow Variables f202.xml
804 Check Config Flow ${False} ${upddata}
805 Check Operational Table ${False} ${upddata}
806 Test Is Flow 203 Deleted
807 [Documentation] Checks if flow is not configured and operational
808 Init Flow Variables f203.xml
809 Check Config Flow ${False} ${upddata}
810 Check Operational Table ${False} ${upddata}
811 Test Is Flow 204 Deleted
812 [Documentation] Checks if flow is not configured and operational
813 Init Flow Variables f204.xml
814 Check Config Flow ${False} ${upddata}
815 Check Operational Table ${False} ${upddata}
816 Test Is Flow 205 Deleted
817 [Documentation] Checks if flow is not configured and operational
818 Init Flow Variables f205.xml
819 Check Config Flow ${False} ${upddata}
820 Check Operational Table ${False} ${upddata}
821 Test Is Flow 206 Deleted
822 [Documentation] Checks if flow is not configured and operational
823 Init Flow Variables f206.xml
824 Check Config Flow ${False} ${upddata}
825 Check Operational Table ${False} ${upddata}
826 Test Is Flow 209 Deleted
827 [Documentation] Checks if flow is not configured and operational
828 Init Flow Variables f209.xml
829 Check Config Flow ${False} ${upddata}
830 Check Operational Table ${False} ${upddata}
831 Test Is Flow 214 Deleted
832 [Documentation] Checks if flow is not configured and operational
833 Init Flow Variables f214.xml
834 Check Config Flow ${False} ${upddata}
835 Check Operational Table ${False} ${upddata}
836 Test Is Flow 218 Deleted
837 [Documentation] Checks if flow is not configured and operational
838 Init Flow Variables f218.xml
839 Check Config Flow ${False} ${upddata}
840 Check Operational Table ${False} ${upddata}
841 Test Is Flow 219 Deleted
842 [Documentation] Checks if flow is not configured and operational
843 Init Flow Variables f219.xml
844 Check Config Flow ${False} ${upddata}
845 Check Operational Table ${False} ${upddata}
846 Test Is Flow 220 Deleted
847 [Documentation] Checks if flow is not configured and operational
848 Init Flow Variables f220.xml
849 Check Config Flow ${False} ${upddata}
850 Check Operational Table ${False} ${upddata}
854 Init Flow Variables [Arguments] ${file}
855 ${data}= OperatingSystem.Get File ${XmlsDir}/${file}
856 ${xmlroot}= Parse Xml ${XmlsDir}/${file}
857 ${table_id}= Get Element Text ${xmlroot} table_id
858 ${flow_id}= Get Element Text ${xmlroot} id
859 ${flow_priority}= Get Element Text ${xmlroot} priority
860 ${upddata}= Get Data For Flow Put Update ${data}
861 Set Suite Variable ${table_id}
862 Set Suite Variable ${flow_id}
863 Set Suite Variable ${flow_priority}
864 Set Suite Variable ${data}
865 Set Suite Variable ${upddata}
866 Set Suite Variable ${xmlroot}
867 Check Config Flow [Arguments] ${expected} ${expvalue}
868 ${presence_flow} ${msg}= Flow Presence Config Flow ${expvalue}
869 ${msgf}= Get Presence Failure Message config ${expected} ${presence_flow} ${msg}
870 Should Be Equal ${expected} ${presence_flow} msg=${msgf}
871 Flow Presence Config Flow [Arguments] ${expvalue}
872 ${headers}= Create Dictionary Accept application/xml
873 ${resp}= Get session /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} headers=${headers}
876 Return From Keyword If ${resp.status_code}!=200 ${False} ${EMPTY}
877 ${pres} ${msg}= Is Flow Configured ${expvalue} ${resp.content}
878 Run Keyword If '''${msg}'''!='${EMPTY}' Log ${msg}
879 Return From Keyword ${pres} ${msg}
880 Check Operational Table [Arguments] ${expected} ${expvalue}
881 ${presence_table} ${msg}= Flow Presence Operational Table ${expvalue}
882 ${msgf}= Get Presence Failure Message operational ${expected} ${presence_table} ${msg}
883 Should Be Equal ${expected} ${presence_table} msg=${msgf}
884 Flow Presence Operational Table [Arguments] ${expvalue}
885 ${headers}= Create Dictionary Accept application/xml
886 ${resp}= Get session /restconf/operational/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id} headers=${headers}
889 Return From Keyword If ${resp.status_code}!=200 ${False} ${EMPTY}
890 ${pres} ${msg}= Is Flow Operational2 ${expvalue} ${resp.content}
891 Run Keyword If '''${msg}'''!='${EMPTY}' Log ${msg}
892 Return From Keyword ${pres} ${msg}
894 [Documentation] Deletes all flows
895 :FOR ${flowfile} IN @{flowlist0}
897 \ Init Flow Variables ${flowfile}
900 [Documentation] Initiate tcp connection with controller
901 Create Session session http://${CONTROLLER}:${PORT} auth=${AUTH} headers=${HEADERS_XML}
902 Write dpctl dump-flows -O OpenFlow13
907 [Documentation] Closes tcp connection with controller and removes flows
909 Get Presence Failure Message [Arguments] ${ds} ${expected} ${presence} ${diffmsg}
910 Return From Keyword If '''${diffmsg}'''!='${EMPTY}' Flow found in ${ds} data store but: ${diffmsg}
911 ${msgf}= Set Variable If ${expected}==${True} The flow is expected in ${ds} data store, but The flow is not expected in ${ds} data store, but
912 ${msgp}= Set Variable If ${presence}==${True} it is present. it is not present.
913 Return From Keyword ${msgf} ${msgp}
915 ${req}= Copy Element ${xmlroot}
916 Remove Element ${req} id clear_tail=True
917 Set Element Tag ${req} input
918 Set Element Attribute ${req} xmlns urn:opendaylight:flow:service
919 Add Element ${req} <node>/inv:nodes/inv:node[inv:id="openflow:${switch_idx}"]</node>
920 ${nodeelm}= Get Element ${req} node
921 Set Element Attribute ${nodeelm} xmlns:inv urn:opendaylight:inventory
923 ${strxml}= Element To String ${req}
924 ${resp}= Post session /restconf/operations/sal-flow:add-flow data=${strxml}
926 Should Be Equal As Strings ${resp.status_code} 200
930 ${xml} Parse Xml <input xmlns="urn:opendaylight:flow:service"></input>
932 ${origflow}= Parse Xml ${data}
933 ${updflow}= Parse Xml ${upddata}
934 Remove Element ${origflow} id clear_tail=True
935 Remove Element ${updflow} id clear_tail=True
936 Remove Element Attribute ${origflow} xmlns
937 Remove Element Attribute ${updflow} xmlns
938 Set Element Tag ${origflow} original-flow
939 Set Element Tag ${updflow} updated-flow
940 Add Element ${xml} ${origflow}
941 Add Element ${xml} ${updflow}
942 Add Element ${xml} <node>/inv:nodes/inv:node[inv:id="openflow:${switch_idx}"]</node>
943 ${nodeelm}= Get Element ${xml} node
944 Set Element Attribute ${nodeelm} xmlns:inv urn:opendaylight:inventory
946 ${strxml}= Element To String ${xml}
947 ${resp}= Post session /restconf/operations/sal-flow:update-flow data=${strxml}
949 Should Be Equal As Strings ${resp.status_code} 200
951 ${req}= Copy Element ${xmlroot}
952 Remove Element ${req} id clear_tail=True
953 Set Element Tag ${req} input
954 Set Element Attribute ${req} xmlns urn:opendaylight:flow:service
955 Add Element ${req} <node>/inv:nodes/inv:node[inv:id="openflow:${switch_idx}"]</node>
956 ${nodeelm}= Get Element ${req} node
957 Set Element Attribute ${nodeelm} xmlns:inv urn:opendaylight:inventory
959 ${strxml}= Element To String ${req}
960 ${resp}= Post session /restconf/operations/sal-flow:remove-flow data=${strxml}
962 Should Be Equal As Strings ${resp.status_code} 200