adding missing example flows
[integration/test.git] / test / tools / OF_Test / robot_suites / 075__Flows_OF13_Stat_Manager_extended / 010_SM_add_upd_del_flows.txt
1 *** Settings ***
2 Documentation     Test suite for Stats Manager flows collection
3 Library        OperatingSystem
4 Library        Collections
5 Library        XML
6 Library        SSHLibrary
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
13
14
15 *** Variables ***
16 ${XmlsDir}=       ${CURDIR}/../../../../csit/variables/xmls
17 ${switch_idx}=    1
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  f29.xml  f30.xml  f31.xml  f32.xml  f33.xml  f34.xml  f35.xml  f36.xml  f38.xml  f41.xml  f42.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  f111.xml  f112.xml  f113.xml  f114.xml  f156.xml  f157.xml  f158.xml  f159.xml  f160.xml  f201.xml  f202.xml  f203.xml  f204.xml  f205.xml  f206.xml  f207.xml  f208.xml  f209.xml  f210.xml  f211.xml  f214.xml  f218.xml  f219.xml  f220.xml
20
21
22 *** Test Cases ***
23 Test Add Flows Group 0
24    [Documentation]    Add all flows and waits for SM to collect data
25      :FOR   ${flowfile}   IN   @{flowlist0}
26      \       Log   ${flowfile}
27      \       Init Flow Variables  ${flowfile}
28      \       Run Keyword And Continue On Failure   Add Flow
29      Sleep  30s
30      Write    dpctl dump-flows -O OpenFlow13
31      Sleep  1s
32      ${switchouput}    Read
33      Log     ${switchouput}
34 Test Is Flow 1 Added
35     [Documentation]    Checks if flow is configured and operational
36       Init Flow Variables       f1.xml
37       Check Config Flow         ${True}   ${data}
38       Check Operational Table   ${True}   ${data}
39 Test Is Flow 2 Added
40     [Documentation]    Checks if flow is configured and operational
41       Init Flow Variables       f2.xml
42       Check Config Flow         ${True}   ${data}
43       Check Operational Table   ${True}   ${data}
44 Test Is Flow 3 Added
45     [Documentation]    Checks if flow is configured and operational
46       Init Flow Variables       f3.xml
47       Check Config Flow         ${True}   ${data}
48       Check Operational Table   ${True}   ${data}
49 Test Is Flow 4 Added
50     [Documentation]    Checks if flow is configured and operational
51       Init Flow Variables       f4.xml
52       Check Config Flow         ${True}   ${data}
53       Check Operational Table   ${True}   ${data}
54 Test Is Flow 5 Added
55     [Documentation]    Checks if flow is configured and operational
56       Init Flow Variables       f5.xml
57       Check Config Flow         ${True}   ${data}
58       Check Operational Table   ${True}   ${data}
59 Test Is Flow 6 Added
60     [Documentation]    Checks if flow is configured and operational
61       Init Flow Variables       f6.xml
62       Check Config Flow         ${True}   ${data}
63       Check Operational Table   ${True}   ${data}
64 Test Is Flow 7 Added
65     [Documentation]    Checks if flow is configured and operational
66       Init Flow Variables       f7.xml
67       Check Config Flow         ${True}   ${data}
68       Check Operational Table   ${True}   ${data}
69 Test Is Flow 8 Added
70     [Documentation]    Checks if flow is configured and operational
71       Init Flow Variables       f8.xml
72       Check Config Flow         ${True}   ${data}
73       Check Operational Table   ${True}   ${data}
74 Test Is Flow 9 Added
75     [Documentation]    Checks if flow is configured and operational
76       Init Flow Variables       f9.xml
77       Check Config Flow         ${True}   ${data}
78       Check Operational Table   ${True}   ${data}
79 Test Is Flow 10 Added
80     [Documentation]    Checks if flow is configured and operational
81       Init Flow Variables       f10.xml
82       Check Config Flow         ${True}   ${data}
83       Check Operational Table   ${True}   ${data}
84 Test Is Flow 11 Added
85     [Documentation]    Checks if flow is configured and operational
86       Init Flow Variables       f11.xml
87       Check Config Flow         ${True}   ${data}
88       Check Operational Table   ${True}   ${data}
89 Test Is Flow 12 Added
90     [Documentation]    Checks if flow is configured and operational
91       Init Flow Variables       f12.xml
92       Check Config Flow         ${True}   ${data}
93       Check Operational Table   ${True}   ${data}
94 Test Is Flow 13 Added
95     [Documentation]    Checks if flow is configured and operational
96       Init Flow Variables       f13.xml
97       Check Config Flow         ${True}   ${data}
98       Check Operational Table   ${True}   ${data}
99 Test Is Flow 14 Added
100     [Documentation]    Checks if flow is configured and operational
101       Init Flow Variables       f14.xml
102       Check Config Flow         ${True}   ${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         ${True}   ${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         ${True}   ${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         ${True}   ${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         ${True}   ${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         ${True}   ${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         ${True}   ${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         ${True}   ${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         ${True}   ${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         ${True}   ${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         ${True}   ${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         ${True}   ${data}
158       Check Operational Table   ${True}   ${data}
159 Test Is Flow 29 Added
160     [Documentation]    Checks if flow is configured and operational
161       Init Flow Variables       f29.xml
162       Check Config Flow         ${True}   ${data}
163       Check Operational Table   ${True}   ${data}
164 Test Is Flow 30 Added
165     [Documentation]    Checks if flow is configured and operational
166       Init Flow Variables       f30.xml
167       Check Config Flow         ${True}   ${data}
168       Check Operational Table   ${True}   ${data}
169 Test Is Flow 31 Added
170     [Documentation]    Checks if flow is configured and operational
171       Init Flow Variables       f31.xml
172       Check Config Flow         ${True}   ${data}
173       Check Operational Table   ${True}   ${data}
174 Test Is Flow 32 Added
175     [Documentation]    Checks if flow is configured and operational
176       Init Flow Variables       f32.xml
177       Check Config Flow         ${True}   ${data}
178       Check Operational Table   ${True}   ${data}
179 Test Is Flow 33 Added
180     [Documentation]    Checks if flow is configured and operational
181       Init Flow Variables       f33.xml
182       Check Config Flow         ${True}   ${data}
183       Check Operational Table   ${True}   ${data}
184 Test Is Flow 34 Added
185     [Documentation]    Checks if flow is configured and operational
186       Init Flow Variables       f34.xml
187       Check Config Flow         ${True}   ${data}
188       Check Operational Table   ${True}   ${data}
189 Test Is Flow 35 Added
190     [Documentation]    Checks if flow is configured and operational
191       Init Flow Variables       f35.xml
192       Check Config Flow         ${True}   ${data}
193       Check Operational Table   ${True}   ${data}
194 Test Is Flow 36 Added
195     [Documentation]    Checks if flow is configured and operational
196       Init Flow Variables       f36.xml
197       Check Config Flow         ${True}   ${data}
198       Check Operational Table   ${True}   ${data}
199 Test Is Flow 38 Added
200     [Documentation]    Checks if flow is configured and operational
201       Init Flow Variables       f38.xml
202       Check Config Flow         ${True}   ${data}
203       Check Operational Table   ${True}   ${data}
204 Test Is Flow 41 Added
205     [Documentation]    Checks if flow is configured and operational
206       Init Flow Variables       f41.xml
207       Check Config Flow         ${True}   ${data}
208       Check Operational Table   ${True}   ${data}
209 Test Is Flow 42 Added
210     [Documentation]    Checks if flow is configured and operational
211       Init Flow Variables       f42.xml
212       Check Config Flow         ${True}   ${data}
213       Check Operational Table   ${True}   ${data}
214 Test Is Flow 43 Added
215     [Documentation]    Checks if flow is configured and operational
216       Init Flow Variables       f43.xml
217       Check Config Flow         ${True}   ${data}
218       Check Operational Table   ${True}   ${data}
219 Test Is Flow 45 Added
220     [Documentation]    Checks if flow is configured and operational
221       Init Flow Variables       f45.xml
222       Check Config Flow         ${True}   ${data}
223       Check Operational Table   ${True}   ${data}
224 Test Is Flow 47 Added
225     [Documentation]    Checks if flow is configured and operational
226       Init Flow Variables       f47.xml
227       Check Config Flow         ${True}   ${data}
228       Check Operational Table   ${True}   ${data}
229 Test Is Flow 101 Added
230     [Documentation]    Checks if flow is configured and operational
231       Init Flow Variables       f101.xml
232       Check Config Flow         ${True}   ${data}
233       Check Operational Table   ${True}   ${data}
234 Test Is Flow 102 Added
235     [Documentation]    Checks if flow is configured and operational
236       Init Flow Variables       f102.xml
237       Check Config Flow         ${True}   ${data}
238       Check Operational Table   ${True}   ${data}
239 Test Is Flow 103 Added
240     [Documentation]    Checks if flow is configured and operational
241       Init Flow Variables       f103.xml
242       Check Config Flow         ${True}   ${data}
243       Check Operational Table   ${True}   ${data}
244 Test Is Flow 104 Added
245     [Documentation]    Checks if flow is configured and operational
246       Init Flow Variables       f104.xml
247       Check Config Flow         ${True}   ${data}
248       Check Operational Table   ${True}   ${data}
249 Test Is Flow 105 Added
250     [Documentation]    Checks if flow is configured and operational
251       Init Flow Variables       f105.xml
252       Check Config Flow         ${True}   ${data}
253       Check Operational Table   ${True}   ${data}
254 Test Is Flow 106 Added
255     [Documentation]    Checks if flow is configured and operational
256       Init Flow Variables       f106.xml
257       Check Config Flow         ${True}   ${data}
258       Check Operational Table   ${True}   ${data}
259 Test Is Flow 107 Added
260     [Documentation]    Checks if flow is configured and operational
261       Init Flow Variables       f107.xml
262       Check Config Flow         ${True}   ${data}
263       Check Operational Table   ${True}   ${data}
264 Test Is Flow 108 Added
265     [Documentation]    Checks if flow is configured and operational
266       Init Flow Variables       f108.xml
267       Check Config Flow         ${True}   ${data}
268       Check Operational Table   ${True}   ${data}
269 Test Is Flow 109 Added
270     [Documentation]    Checks if flow is configured and operational
271       Init Flow Variables       f109.xml
272       Check Config Flow         ${True}   ${data}
273       Check Operational Table   ${True}   ${data}
274 Test Is Flow 110 Added
275     [Documentation]    Checks if flow is configured and operational
276       Init Flow Variables       f110.xml
277       Check Config Flow         ${True}   ${data}
278       Check Operational Table   ${True}   ${data}
279 Test Is Flow 111 Added
280     [Documentation]    Checks if flow is configured and operational
281       Init Flow Variables       f111.xml
282       Check Config Flow         ${True}   ${data}
283       Check Operational Table   ${True}   ${data}
284 Test Is Flow 112 Added
285     [Documentation]    Checks if flow is configured and operational
286       Init Flow Variables       f112.xml
287       Check Config Flow         ${True}   ${data}
288       Check Operational Table   ${True}   ${data}
289 Test Is Flow 113 Added
290     [Documentation]    Checks if flow is configured and operational
291       Init Flow Variables       f113.xml
292       Check Config Flow         ${True}   ${data}
293       Check Operational Table   ${True}   ${data}
294 Test Is Flow 114 Added
295     [Documentation]    Checks if flow is configured and operational
296       Init Flow Variables       f114.xml
297       Check Config Flow         ${True}   ${data}
298       Check Operational Table   ${True}   ${data}
299 Test Is Flow 156 Added
300     [Documentation]    Checks if flow is configured and operational
301       Init Flow Variables       f156.xml
302       Check Config Flow         ${True}   ${data}
303       Check Operational Table   ${True}   ${data}
304 Test Is Flow 157 Added
305     [Documentation]    Checks if flow is configured and operational
306       Init Flow Variables       f157.xml
307       Check Config Flow         ${True}   ${data}
308       Check Operational Table   ${True}   ${data}
309 Test Is Flow 158 Added
310     [Documentation]    Checks if flow is configured and operational
311       Init Flow Variables       f158.xml
312       Check Config Flow         ${True}   ${data}
313       Check Operational Table   ${True}   ${data}
314 Test Is Flow 159 Added
315     [Documentation]    Checks if flow is configured and operational
316       Init Flow Variables       f159.xml
317       Check Config Flow         ${True}   ${data}
318       Check Operational Table   ${True}   ${data}
319 Test Is Flow 160 Added
320     [Documentation]    Checks if flow is configured and operational
321       Init Flow Variables       f160.xml
322       Check Config Flow         ${True}   ${data}
323       Check Operational Table   ${True}   ${data}
324 Test Is Flow 201 Added
325     [Documentation]    Checks if flow is configured and operational
326       Init Flow Variables       f201.xml
327       Check Config Flow         ${True}   ${data}
328       Check Operational Table   ${True}   ${data}
329 Test Is Flow 202 Added
330     [Documentation]    Checks if flow is configured and operational
331       Init Flow Variables       f202.xml
332       Check Config Flow         ${True}   ${data}
333       Check Operational Table   ${True}   ${data}
334 Test Is Flow 203 Added
335     [Documentation]    Checks if flow is configured and operational
336       Init Flow Variables       f203.xml
337       Check Config Flow         ${True}   ${data}
338       Check Operational Table   ${True}   ${data}
339 Test Is Flow 204 Added
340     [Documentation]    Checks if flow is configured and operational
341       Init Flow Variables       f204.xml
342       Check Config Flow         ${True}   ${data}
343       Check Operational Table   ${True}   ${data}
344 Test Is Flow 205 Added
345     [Documentation]    Checks if flow is configured and operational
346       Init Flow Variables       f205.xml
347       Check Config Flow         ${True}   ${data}
348       Check Operational Table   ${True}   ${data}
349 Test Is Flow 206 Added
350     [Documentation]    Checks if flow is configured and operational
351       Init Flow Variables       f206.xml
352       Check Config Flow         ${True}   ${data}
353       Check Operational Table   ${True}   ${data}
354 Test Is Flow 207 Added
355     [Documentation]    Checks if flow is configured and operational
356       Init Flow Variables       f207.xml
357       Check Config Flow         ${True}   ${data}
358       Check Operational Table   ${True}   ${data}
359 Test Is Flow 208 Added
360     [Documentation]    Checks if flow is configured and operational
361       Init Flow Variables       f208.xml
362       Check Config Flow         ${True}   ${data}
363       Check Operational Table   ${True}   ${data}
364 Test Is Flow 209 Added
365     [Documentation]    Checks if flow is configured and operational
366       Init Flow Variables       f209.xml
367       Check Config Flow         ${True}   ${data}
368       Check Operational Table   ${True}   ${data}
369 Test Is Flow 210 Added
370     [Documentation]    Checks if flow is configured and operational
371       Init Flow Variables       f210.xml
372       Check Config Flow         ${True}   ${data}
373       Check Operational Table   ${True}   ${data}
374 Test Is Flow 211 Added
375     [Documentation]    Checks if flow is configured and operational
376       Init Flow Variables       f211.xml
377       Check Config Flow         ${True}   ${data}
378       Check Operational Table   ${True}   ${data}
379 Test Is Flow 214 Added
380     [Documentation]    Checks if flow is configured and operational
381       Init Flow Variables       f214.xml
382       Check Config Flow         ${True}   ${data}
383       Check Operational Table   ${True}   ${data}
384 Test Is Flow 218 Added
385     [Documentation]    Checks if flow is configured and operational
386       Init Flow Variables       f218.xml
387       Check Config Flow         ${True}   ${data}
388       Check Operational Table   ${True}   ${data}
389 Test Is Flow 219 Added
390     [Documentation]    Checks if flow is configured and operational
391       Init Flow Variables       f219.xml
392       Check Config Flow         ${True}   ${data}
393       Check Operational Table   ${True}   ${data}
394 Test Is Flow 220 Added
395     [Documentation]    Checks if flow is configured and operational
396       Init Flow Variables       f220.xml
397       Check Config Flow         ${True}   ${data}
398       Check Operational Table   ${True}   ${data}
399 Test Update Flows Group 0
400    [Documentation]    Update all flows and waits for SM to collect data
401      :FOR   ${flowfile}   IN   @{flowlist0}
402      \       Log   ${flowfile}
403      \       Init Flow Variables  ${flowfile}
404      \       Run Keyword And Continue On Failure   Update Flow
405      Sleep  40s
406      Write    dpctl dump-flows -O OpenFlow13
407      Sleep  1s
408      ${switchouput}    Read
409      Log     ${switchouput}
410 Test Is Flow 1 Updated
411     [Documentation]    Checks if flow is configured and operational
412       Init Flow Variables       f1.xml
413       Check Config Flow         ${True}   ${upddata}
414       Check Operational Table   ${True}   ${upddata}
415 Test Is Flow 2 Updated
416     [Documentation]    Checks if flow is configured and operational
417       Init Flow Variables       f2.xml
418       Check Config Flow         ${True}   ${upddata}
419       Check Operational Table   ${True}   ${upddata}
420 Test Is Flow 3 Updated
421     [Documentation]    Checks if flow is configured and operational
422       Init Flow Variables       f3.xml
423       Check Config Flow         ${True}   ${upddata}
424       Check Operational Table   ${True}   ${upddata}
425 Test Is Flow 4 Updated
426     [Documentation]    Checks if flow is configured and operational
427       Init Flow Variables       f4.xml
428       Check Config Flow         ${True}   ${upddata}
429       Check Operational Table   ${True}   ${upddata}
430 Test Is Flow 5 Updated
431     [Documentation]    Checks if flow is configured and operational
432       Init Flow Variables       f5.xml
433       Check Config Flow         ${True}   ${upddata}
434       Check Operational Table   ${True}   ${upddata}
435 Test Is Flow 6 Updated
436     [Documentation]    Checks if flow is configured and operational
437       Init Flow Variables       f6.xml
438       Check Config Flow         ${True}   ${upddata}
439       Check Operational Table   ${True}   ${upddata}
440 Test Is Flow 7 Updated
441     [Documentation]    Checks if flow is configured and operational
442       Init Flow Variables       f7.xml
443       Check Config Flow         ${True}   ${upddata}
444       Check Operational Table   ${True}   ${upddata}
445 Test Is Flow 8 Updated
446     [Documentation]    Checks if flow is configured and operational
447       Init Flow Variables       f8.xml
448       Check Config Flow         ${True}   ${upddata}
449       Check Operational Table   ${True}   ${upddata}
450 Test Is Flow 9 Updated
451     [Documentation]    Checks if flow is configured and operational
452       Init Flow Variables       f9.xml
453       Check Config Flow         ${True}   ${upddata}
454       Check Operational Table   ${True}   ${upddata}
455 Test Is Flow 10 Updated
456     [Documentation]    Checks if flow is configured and operational
457       Init Flow Variables       f10.xml
458       Check Config Flow         ${True}   ${upddata}
459       Check Operational Table   ${True}   ${upddata}
460 Test Is Flow 11 Updated
461     [Documentation]    Checks if flow is configured and operational
462       Init Flow Variables       f11.xml
463       Check Config Flow         ${True}   ${upddata}
464       Check Operational Table   ${True}   ${upddata}
465 Test Is Flow 12 Updated
466     [Documentation]    Checks if flow is configured and operational
467       Init Flow Variables       f12.xml
468       Check Config Flow         ${True}   ${upddata}
469       Check Operational Table   ${True}   ${upddata}
470 Test Is Flow 13 Updated
471     [Documentation]    Checks if flow is configured and operational
472       Init Flow Variables       f13.xml
473       Check Config Flow         ${True}   ${upddata}
474       Check Operational Table   ${True}   ${upddata}
475 Test Is Flow 14 Updated
476     [Documentation]    Checks if flow is configured and operational
477       Init Flow Variables       f14.xml
478       Check Config Flow         ${True}   ${upddata}
479       Check Operational Table   ${True}   ${upddata}
480 Test Is Flow 15 Updated
481     [Documentation]    Checks if flow is configured and operational
482       Init Flow Variables       f15.xml
483       Check Config Flow         ${True}   ${upddata}
484       Check Operational Table   ${True}   ${upddata}
485 Test Is Flow 16 Updated
486     [Documentation]    Checks if flow is configured and operational
487       Init Flow Variables       f16.xml
488       Check Config Flow         ${True}   ${upddata}
489       Check Operational Table   ${True}   ${upddata}
490 Test Is Flow 17 Updated
491     [Documentation]    Checks if flow is configured and operational
492       Init Flow Variables       f17.xml
493       Check Config Flow         ${True}   ${upddata}
494       Check Operational Table   ${True}   ${upddata}
495 Test Is Flow 18 Updated
496     [Documentation]    Checks if flow is configured and operational
497       Init Flow Variables       f18.xml
498       Check Config Flow         ${True}   ${upddata}
499       Check Operational Table   ${True}   ${upddata}
500 Test Is Flow 19 Updated
501     [Documentation]    Checks if flow is configured and operational
502       Init Flow Variables       f19.xml
503       Check Config Flow         ${True}   ${upddata}
504       Check Operational Table   ${True}   ${upddata}
505 Test Is Flow 20 Updated
506     [Documentation]    Checks if flow is configured and operational
507       Init Flow Variables       f20.xml
508       Check Config Flow         ${True}   ${upddata}
509       Check Operational Table   ${True}   ${upddata}
510 Test Is Flow 21 Updated
511     [Documentation]    Checks if flow is configured and operational
512       Init Flow Variables       f21.xml
513       Check Config Flow         ${True}   ${upddata}
514       Check Operational Table   ${True}   ${upddata}
515 Test Is Flow 22 Updated
516     [Documentation]    Checks if flow is configured and operational
517       Init Flow Variables       f22.xml
518       Check Config Flow         ${True}   ${upddata}
519       Check Operational Table   ${True}   ${upddata}
520 Test Is Flow 23 Updated
521     [Documentation]    Checks if flow is configured and operational
522       Init Flow Variables       f23.xml
523       Check Config Flow         ${True}   ${upddata}
524       Check Operational Table   ${True}   ${upddata}
525 Test Is Flow 24 Updated
526     [Documentation]    Checks if flow is configured and operational
527       Init Flow Variables       f24.xml
528       Check Config Flow         ${True}   ${upddata}
529       Check Operational Table   ${True}   ${upddata}
530 Test Is Flow 25 Updated
531     [Documentation]    Checks if flow is configured and operational
532       Init Flow Variables       f25.xml
533       Check Config Flow         ${True}   ${upddata}
534       Check Operational Table   ${True}   ${upddata}
535 Test Is Flow 29 Updated
536     [Documentation]    Checks if flow is configured and operational
537       Init Flow Variables       f29.xml
538       Check Config Flow         ${True}   ${upddata}
539       Check Operational Table   ${True}   ${upddata}
540 Test Is Flow 30 Updated
541     [Documentation]    Checks if flow is configured and operational
542       Init Flow Variables       f30.xml
543       Check Config Flow         ${True}   ${upddata}
544       Check Operational Table   ${True}   ${upddata}
545 Test Is Flow 31 Updated
546     [Documentation]    Checks if flow is configured and operational
547       Init Flow Variables       f31.xml
548       Check Config Flow         ${True}   ${upddata}
549       Check Operational Table   ${True}   ${upddata}
550 Test Is Flow 32 Updated
551     [Documentation]    Checks if flow is configured and operational
552       Init Flow Variables       f32.xml
553       Check Config Flow         ${True}   ${upddata}
554       Check Operational Table   ${True}   ${upddata}
555 Test Is Flow 33 Updated
556     [Documentation]    Checks if flow is configured and operational
557       Init Flow Variables       f33.xml
558       Check Config Flow         ${True}   ${upddata}
559       Check Operational Table   ${True}   ${upddata}
560 Test Is Flow 34 Updated
561     [Documentation]    Checks if flow is configured and operational
562       Init Flow Variables       f34.xml
563       Check Config Flow         ${True}   ${upddata}
564       Check Operational Table   ${True}   ${upddata}
565 Test Is Flow 35 Updated
566     [Documentation]    Checks if flow is configured and operational
567       Init Flow Variables       f35.xml
568       Check Config Flow         ${True}   ${upddata}
569       Check Operational Table   ${True}   ${upddata}
570 Test Is Flow 36 Updated
571     [Documentation]    Checks if flow is configured and operational
572       Init Flow Variables       f36.xml
573       Check Config Flow         ${True}   ${upddata}
574       Check Operational Table   ${True}   ${upddata}
575 Test Is Flow 38 Updated
576     [Documentation]    Checks if flow is configured and operational
577       Init Flow Variables       f38.xml
578       Check Config Flow         ${True}   ${upddata}
579       Check Operational Table   ${True}   ${upddata}
580 Test Is Flow 41 Updated
581     [Documentation]    Checks if flow is configured and operational
582       Init Flow Variables       f41.xml
583       Check Config Flow         ${True}   ${upddata}
584       Check Operational Table   ${True}   ${upddata}
585 Test Is Flow 42 Updated
586     [Documentation]    Checks if flow is configured and operational
587       Init Flow Variables       f42.xml
588       Check Config Flow         ${True}   ${upddata}
589       Check Operational Table   ${True}   ${upddata}
590 Test Is Flow 43 Updated
591     [Documentation]    Checks if flow is configured and operational
592       Init Flow Variables       f43.xml
593       Check Config Flow         ${True}   ${upddata}
594       Check Operational Table   ${True}   ${upddata}
595 Test Is Flow 45 Updated
596     [Documentation]    Checks if flow is configured and operational
597       Init Flow Variables       f45.xml
598       Check Config Flow         ${True}   ${upddata}
599       Check Operational Table   ${True}   ${upddata}
600 Test Is Flow 47 Updated
601     [Documentation]    Checks if flow is configured and operational
602       Init Flow Variables       f47.xml
603       Check Config Flow         ${True}   ${upddata}
604       Check Operational Table   ${True}   ${upddata}
605 Test Is Flow 101 Updated
606     [Documentation]    Checks if flow is configured and operational
607       Init Flow Variables       f101.xml
608       Check Config Flow         ${True}   ${upddata}
609       Check Operational Table   ${True}   ${upddata}
610 Test Is Flow 102 Updated
611     [Documentation]    Checks if flow is configured and operational
612       Init Flow Variables       f102.xml
613       Check Config Flow         ${True}   ${upddata}
614       Check Operational Table   ${True}   ${upddata}
615 Test Is Flow 103 Updated
616     [Documentation]    Checks if flow is configured and operational
617       Init Flow Variables       f103.xml
618       Check Config Flow         ${True}   ${upddata}
619       Check Operational Table   ${True}   ${upddata}
620 Test Is Flow 104 Updated
621     [Documentation]    Checks if flow is configured and operational
622       Init Flow Variables       f104.xml
623       Check Config Flow         ${True}   ${upddata}
624       Check Operational Table   ${True}   ${upddata}
625 Test Is Flow 105 Updated
626     [Documentation]    Checks if flow is configured and operational
627       Init Flow Variables       f105.xml
628       Check Config Flow         ${True}   ${upddata}
629       Check Operational Table   ${True}   ${upddata}
630 Test Is Flow 106 Updated
631     [Documentation]    Checks if flow is configured and operational
632       Init Flow Variables       f106.xml
633       Check Config Flow         ${True}   ${upddata}
634       Check Operational Table   ${True}   ${upddata}
635 Test Is Flow 107 Updated
636     [Documentation]    Checks if flow is configured and operational
637       Init Flow Variables       f107.xml
638       Check Config Flow         ${True}   ${upddata}
639       Check Operational Table   ${True}   ${upddata}
640 Test Is Flow 108 Updated
641     [Documentation]    Checks if flow is configured and operational
642       Init Flow Variables       f108.xml
643       Check Config Flow         ${True}   ${upddata}
644       Check Operational Table   ${True}   ${upddata}
645 Test Is Flow 109 Updated
646     [Documentation]    Checks if flow is configured and operational
647       Init Flow Variables       f109.xml
648       Check Config Flow         ${True}   ${upddata}
649       Check Operational Table   ${True}   ${upddata}
650 Test Is Flow 110 Updated
651     [Documentation]    Checks if flow is configured and operational
652       Init Flow Variables       f110.xml
653       Check Config Flow         ${True}   ${upddata}
654       Check Operational Table   ${True}   ${upddata}
655 Test Is Flow 111 Updated
656     [Documentation]    Checks if flow is configured and operational
657       Init Flow Variables       f111.xml
658       Check Config Flow         ${True}   ${upddata}
659       Check Operational Table   ${True}   ${upddata}
660 Test Is Flow 112 Updated
661     [Documentation]    Checks if flow is configured and operational
662       Init Flow Variables       f112.xml
663       Check Config Flow         ${True}   ${upddata}
664       Check Operational Table   ${True}   ${upddata}
665 Test Is Flow 113 Updated
666     [Documentation]    Checks if flow is configured and operational
667       Init Flow Variables       f113.xml
668       Check Config Flow         ${True}   ${upddata}
669       Check Operational Table   ${True}   ${upddata}
670 Test Is Flow 114 Updated
671     [Documentation]    Checks if flow is configured and operational
672       Init Flow Variables       f114.xml
673       Check Config Flow         ${True}   ${upddata}
674       Check Operational Table   ${True}   ${upddata}
675 Test Is Flow 156 Updated
676     [Documentation]    Checks if flow is configured and operational
677       Init Flow Variables       f156.xml
678       Check Config Flow         ${True}   ${upddata}
679       Check Operational Table   ${True}   ${upddata}
680 Test Is Flow 157 Updated
681     [Documentation]    Checks if flow is configured and operational
682       Init Flow Variables       f157.xml
683       Check Config Flow         ${True}   ${upddata}
684       Check Operational Table   ${True}   ${upddata}
685 Test Is Flow 158 Updated
686     [Documentation]    Checks if flow is configured and operational
687       Init Flow Variables       f158.xml
688       Check Config Flow         ${True}   ${upddata}
689       Check Operational Table   ${True}   ${upddata}
690 Test Is Flow 159 Updated
691     [Documentation]    Checks if flow is configured and operational
692       Init Flow Variables       f159.xml
693       Check Config Flow         ${True}   ${upddata}
694       Check Operational Table   ${True}   ${upddata}
695 Test Is Flow 160 Updated
696     [Documentation]    Checks if flow is configured and operational
697       Init Flow Variables       f160.xml
698       Check Config Flow         ${True}   ${upddata}
699       Check Operational Table   ${True}   ${upddata}
700 Test Is Flow 201 Updated
701     [Documentation]    Checks if flow is configured and operational
702       Init Flow Variables       f201.xml
703       Check Config Flow         ${True}   ${upddata}
704       Check Operational Table   ${True}   ${upddata}
705 Test Is Flow 202 Updated
706     [Documentation]    Checks if flow is configured and operational
707       Init Flow Variables       f202.xml
708       Check Config Flow         ${True}   ${upddata}
709       Check Operational Table   ${True}   ${upddata}
710 Test Is Flow 203 Updated
711     [Documentation]    Checks if flow is configured and operational
712       Init Flow Variables       f203.xml
713       Check Config Flow         ${True}   ${upddata}
714       Check Operational Table   ${True}   ${upddata}
715 Test Is Flow 204 Updated
716     [Documentation]    Checks if flow is configured and operational
717       Init Flow Variables       f204.xml
718       Check Config Flow         ${True}   ${upddata}
719       Check Operational Table   ${True}   ${upddata}
720 Test Is Flow 205 Updated
721     [Documentation]    Checks if flow is configured and operational
722       Init Flow Variables       f205.xml
723       Check Config Flow         ${True}   ${upddata}
724       Check Operational Table   ${True}   ${upddata}
725 Test Is Flow 206 Updated
726     [Documentation]    Checks if flow is configured and operational
727       Init Flow Variables       f206.xml
728       Check Config Flow         ${True}   ${upddata}
729       Check Operational Table   ${True}   ${upddata}
730 Test Is Flow 207 Updated
731     [Documentation]    Checks if flow is configured and operational
732       Init Flow Variables       f207.xml
733       Check Config Flow         ${True}   ${upddata}
734       Check Operational Table   ${True}   ${upddata}
735 Test Is Flow 208 Updated
736     [Documentation]    Checks if flow is configured and operational
737       Init Flow Variables       f208.xml
738       Check Config Flow         ${True}   ${upddata}
739       Check Operational Table   ${True}   ${upddata}
740 Test Is Flow 209 Updated
741     [Documentation]    Checks if flow is configured and operational
742       Init Flow Variables       f209.xml
743       Check Config Flow         ${True}   ${upddata}
744       Check Operational Table   ${True}   ${upddata}
745 Test Is Flow 210 Updated
746     [Documentation]    Checks if flow is configured and operational
747       Init Flow Variables       f210.xml
748       Check Config Flow         ${True}   ${upddata}
749       Check Operational Table   ${True}   ${upddata}
750 Test Is Flow 211 Updated
751     [Documentation]    Checks if flow is configured and operational
752       Init Flow Variables       f211.xml
753       Check Config Flow         ${True}   ${upddata}
754       Check Operational Table   ${True}   ${upddata}
755 Test Is Flow 214 Updated
756     [Documentation]    Checks if flow is configured and operational
757       Init Flow Variables       f214.xml
758       Check Config Flow         ${True}   ${upddata}
759       Check Operational Table   ${True}   ${upddata}
760 Test Is Flow 218 Updated
761     [Documentation]    Checks if flow is configured and operational
762       Init Flow Variables       f218.xml
763       Check Config Flow         ${True}   ${upddata}
764       Check Operational Table   ${True}   ${upddata}
765 Test Is Flow 219 Updated
766     [Documentation]    Checks if flow is configured and operational
767       Init Flow Variables       f219.xml
768       Check Config Flow         ${True}   ${upddata}
769       Check Operational Table   ${True}   ${upddata}
770 Test Is Flow 220 Updated
771     [Documentation]    Checks if flow is configured and operational
772       Init Flow Variables       f220.xml
773       Check Config Flow         ${True}   ${upddata}
774       Check Operational Table   ${True}   ${upddata}
775 Test Delete Flows Group 0
776    [Documentation]    Delete all flows and waits for SM to collect data
777      :FOR   ${flowfile}   IN   @{flowlist0}
778      \       Log   ${flowfile}
779      \       Init Flow Variables   ${flowfile}
780      \       Run Keyword And Continue On Failure   Delete Flow
781      Sleep  40s
782      Write    dpctl dump-flows -O OpenFlow13
783      Sleep  1s
784      ${switchouput}    Read
785      Log     ${switchouput}
786 Test Is Flow 1 Deleted
787     [Documentation]    Checks if flow is not configured and operational 
788       Init Flow Variables       f1.xml
789       Check Config Flow         ${False}   ${upddata}
790       Check Operational Table   ${False}   ${upddata}
791 Test Is Flow 2 Deleted
792     [Documentation]    Checks if flow is not configured and operational 
793       Init Flow Variables       f2.xml
794       Check Config Flow         ${False}   ${upddata}
795       Check Operational Table   ${False}   ${upddata}
796 Test Is Flow 3 Deleted
797     [Documentation]    Checks if flow is not configured and operational 
798       Init Flow Variables       f3.xml
799       Check Config Flow         ${False}   ${upddata}
800       Check Operational Table   ${False}   ${upddata}
801 Test Is Flow 4 Deleted
802     [Documentation]    Checks if flow is not configured and operational 
803       Init Flow Variables       f4.xml
804       Check Config Flow         ${False}   ${upddata}
805       Check Operational Table   ${False}   ${upddata}
806 Test Is Flow 5 Deleted
807     [Documentation]    Checks if flow is not configured and operational 
808       Init Flow Variables       f5.xml
809       Check Config Flow         ${False}   ${upddata}
810       Check Operational Table   ${False}   ${upddata}
811 Test Is Flow 6 Deleted
812     [Documentation]    Checks if flow is not configured and operational 
813       Init Flow Variables       f6.xml
814       Check Config Flow         ${False}   ${upddata}
815       Check Operational Table   ${False}   ${upddata}
816 Test Is Flow 7 Deleted
817     [Documentation]    Checks if flow is not configured and operational 
818       Init Flow Variables       f7.xml
819       Check Config Flow         ${False}   ${upddata}
820       Check Operational Table   ${False}   ${upddata}
821 Test Is Flow 8 Deleted
822     [Documentation]    Checks if flow is not configured and operational 
823       Init Flow Variables       f8.xml
824       Check Config Flow         ${False}   ${upddata}
825       Check Operational Table   ${False}   ${upddata}
826 Test Is Flow 9 Deleted
827     [Documentation]    Checks if flow is not configured and operational 
828       Init Flow Variables       f9.xml
829       Check Config Flow         ${False}   ${upddata}
830       Check Operational Table   ${False}   ${upddata}
831 Test Is Flow 10 Deleted
832     [Documentation]    Checks if flow is not configured and operational 
833       Init Flow Variables       f10.xml
834       Check Config Flow         ${False}   ${upddata}
835       Check Operational Table   ${False}   ${upddata}
836 Test Is Flow 11 Deleted
837     [Documentation]    Checks if flow is not configured and operational 
838       Init Flow Variables       f11.xml
839       Check Config Flow         ${False}   ${upddata}
840       Check Operational Table   ${False}   ${upddata}
841 Test Is Flow 12 Deleted
842     [Documentation]    Checks if flow is not configured and operational 
843       Init Flow Variables       f12.xml
844       Check Config Flow         ${False}   ${upddata}
845       Check Operational Table   ${False}   ${upddata}
846 Test Is Flow 13 Deleted
847     [Documentation]    Checks if flow is not configured and operational 
848       Init Flow Variables       f13.xml
849       Check Config Flow         ${False}   ${upddata}
850       Check Operational Table   ${False}   ${upddata}
851 Test Is Flow 14 Deleted
852     [Documentation]    Checks if flow is not configured and operational 
853       Init Flow Variables       f14.xml
854       Check Config Flow         ${False}   ${upddata}
855       Check Operational Table   ${False}   ${upddata}
856 Test Is Flow 15 Deleted
857     [Documentation]    Checks if flow is not configured and operational 
858       Init Flow Variables       f15.xml
859       Check Config Flow         ${False}   ${upddata}
860       Check Operational Table   ${False}   ${upddata}
861 Test Is Flow 16 Deleted
862     [Documentation]    Checks if flow is not configured and operational 
863       Init Flow Variables       f16.xml
864       Check Config Flow         ${False}   ${upddata}
865       Check Operational Table   ${False}   ${upddata}
866 Test Is Flow 17 Deleted
867     [Documentation]    Checks if flow is not configured and operational 
868       Init Flow Variables       f17.xml
869       Check Config Flow         ${False}   ${upddata}
870       Check Operational Table   ${False}   ${upddata}
871 Test Is Flow 18 Deleted
872     [Documentation]    Checks if flow is not configured and operational 
873       Init Flow Variables       f18.xml
874       Check Config Flow         ${False}   ${upddata}
875       Check Operational Table   ${False}   ${upddata}
876 Test Is Flow 19 Deleted
877     [Documentation]    Checks if flow is not configured and operational 
878       Init Flow Variables       f19.xml
879       Check Config Flow         ${False}   ${upddata}
880       Check Operational Table   ${False}   ${upddata}
881 Test Is Flow 20 Deleted
882     [Documentation]    Checks if flow is not configured and operational 
883       Init Flow Variables       f20.xml
884       Check Config Flow         ${False}   ${upddata}
885       Check Operational Table   ${False}   ${upddata}
886 Test Is Flow 21 Deleted
887     [Documentation]    Checks if flow is not configured and operational 
888       Init Flow Variables       f21.xml
889       Check Config Flow         ${False}   ${upddata}
890       Check Operational Table   ${False}   ${upddata}
891 Test Is Flow 22 Deleted
892     [Documentation]    Checks if flow is not configured and operational 
893       Init Flow Variables       f22.xml
894       Check Config Flow         ${False}   ${upddata}
895       Check Operational Table   ${False}   ${upddata}
896 Test Is Flow 23 Deleted
897     [Documentation]    Checks if flow is not configured and operational 
898       Init Flow Variables       f23.xml
899       Check Config Flow         ${False}   ${upddata}
900       Check Operational Table   ${False}   ${upddata}
901 Test Is Flow 24 Deleted
902     [Documentation]    Checks if flow is not configured and operational 
903       Init Flow Variables       f24.xml
904       Check Config Flow         ${False}   ${upddata}
905       Check Operational Table   ${False}   ${upddata}
906 Test Is Flow 25 Deleted
907     [Documentation]    Checks if flow is not configured and operational 
908       Init Flow Variables       f25.xml
909       Check Config Flow         ${False}   ${upddata}
910       Check Operational Table   ${False}   ${upddata}
911 Test Is Flow 29 Deleted
912     [Documentation]    Checks if flow is not configured and operational 
913       Init Flow Variables       f29.xml
914       Check Config Flow         ${False}   ${upddata}
915       Check Operational Table   ${False}   ${upddata}
916 Test Is Flow 30 Deleted
917     [Documentation]    Checks if flow is not configured and operational 
918       Init Flow Variables       f30.xml
919       Check Config Flow         ${False}   ${upddata}
920       Check Operational Table   ${False}   ${upddata}
921 Test Is Flow 31 Deleted
922     [Documentation]    Checks if flow is not configured and operational 
923       Init Flow Variables       f31.xml
924       Check Config Flow         ${False}   ${upddata}
925       Check Operational Table   ${False}   ${upddata}
926 Test Is Flow 32 Deleted
927     [Documentation]    Checks if flow is not configured and operational 
928       Init Flow Variables       f32.xml
929       Check Config Flow         ${False}   ${upddata}
930       Check Operational Table   ${False}   ${upddata}
931 Test Is Flow 33 Deleted
932     [Documentation]    Checks if flow is not configured and operational 
933       Init Flow Variables       f33.xml
934       Check Config Flow         ${False}   ${upddata}
935       Check Operational Table   ${False}   ${upddata}
936 Test Is Flow 34 Deleted
937     [Documentation]    Checks if flow is not configured and operational 
938       Init Flow Variables       f34.xml
939       Check Config Flow         ${False}   ${upddata}
940       Check Operational Table   ${False}   ${upddata}
941 Test Is Flow 35 Deleted
942     [Documentation]    Checks if flow is not configured and operational 
943       Init Flow Variables       f35.xml
944       Check Config Flow         ${False}   ${upddata}
945       Check Operational Table   ${False}   ${upddata}
946 Test Is Flow 36 Deleted
947     [Documentation]    Checks if flow is not configured and operational 
948       Init Flow Variables       f36.xml
949       Check Config Flow         ${False}   ${upddata}
950       Check Operational Table   ${False}   ${upddata}
951 Test Is Flow 38 Deleted
952     [Documentation]    Checks if flow is not configured and operational 
953       Init Flow Variables       f38.xml
954       Check Config Flow         ${False}   ${upddata}
955       Check Operational Table   ${False}   ${upddata}
956 Test Is Flow 41 Deleted
957     [Documentation]    Checks if flow is not configured and operational 
958       Init Flow Variables       f41.xml
959       Check Config Flow         ${False}   ${upddata}
960       Check Operational Table   ${False}   ${upddata}
961 Test Is Flow 42 Deleted
962     [Documentation]    Checks if flow is not configured and operational 
963       Init Flow Variables       f42.xml
964       Check Config Flow         ${False}   ${upddata}
965       Check Operational Table   ${False}   ${upddata}
966 Test Is Flow 43 Deleted
967     [Documentation]    Checks if flow is not configured and operational 
968       Init Flow Variables       f43.xml
969       Check Config Flow         ${False}   ${upddata}
970       Check Operational Table   ${False}   ${upddata}
971 Test Is Flow 45 Deleted
972     [Documentation]    Checks if flow is not configured and operational 
973       Init Flow Variables       f45.xml
974       Check Config Flow         ${False}   ${upddata}
975       Check Operational Table   ${False}   ${upddata}
976 Test Is Flow 47 Deleted
977     [Documentation]    Checks if flow is not configured and operational 
978       Init Flow Variables       f47.xml
979       Check Config Flow         ${False}   ${upddata}
980       Check Operational Table   ${False}   ${upddata}
981 Test Is Flow 101 Deleted
982     [Documentation]    Checks if flow is not configured and operational 
983       Init Flow Variables       f101.xml
984       Check Config Flow         ${False}   ${upddata}
985       Check Operational Table   ${False}   ${upddata}
986 Test Is Flow 102 Deleted
987     [Documentation]    Checks if flow is not configured and operational 
988       Init Flow Variables       f102.xml
989       Check Config Flow         ${False}   ${upddata}
990       Check Operational Table   ${False}   ${upddata}
991 Test Is Flow 103 Deleted
992     [Documentation]    Checks if flow is not configured and operational 
993       Init Flow Variables       f103.xml
994       Check Config Flow         ${False}   ${upddata}
995       Check Operational Table   ${False}   ${upddata}
996 Test Is Flow 104 Deleted
997     [Documentation]    Checks if flow is not configured and operational 
998       Init Flow Variables       f104.xml
999       Check Config Flow         ${False}   ${upddata}
1000       Check Operational Table   ${False}   ${upddata}
1001 Test Is Flow 105 Deleted
1002     [Documentation]    Checks if flow is not configured and operational 
1003       Init Flow Variables       f105.xml
1004       Check Config Flow         ${False}   ${upddata}
1005       Check Operational Table   ${False}   ${upddata}
1006 Test Is Flow 106 Deleted
1007     [Documentation]    Checks if flow is not configured and operational 
1008       Init Flow Variables       f106.xml
1009       Check Config Flow         ${False}   ${upddata}
1010       Check Operational Table   ${False}   ${upddata}
1011 Test Is Flow 107 Deleted
1012     [Documentation]    Checks if flow is not configured and operational 
1013       Init Flow Variables       f107.xml
1014       Check Config Flow         ${False}   ${upddata}
1015       Check Operational Table   ${False}   ${upddata}
1016 Test Is Flow 108 Deleted
1017     [Documentation]    Checks if flow is not configured and operational 
1018       Init Flow Variables       f108.xml
1019       Check Config Flow         ${False}   ${upddata}
1020       Check Operational Table   ${False}   ${upddata}
1021 Test Is Flow 109 Deleted
1022     [Documentation]    Checks if flow is not configured and operational 
1023       Init Flow Variables       f109.xml
1024       Check Config Flow         ${False}   ${upddata}
1025       Check Operational Table   ${False}   ${upddata}
1026 Test Is Flow 110 Deleted
1027     [Documentation]    Checks if flow is not configured and operational 
1028       Init Flow Variables       f110.xml
1029       Check Config Flow         ${False}   ${upddata}
1030       Check Operational Table   ${False}   ${upddata}
1031 Test Is Flow 111 Deleted
1032     [Documentation]    Checks if flow is not configured and operational 
1033       Init Flow Variables       f111.xml
1034       Check Config Flow         ${False}   ${upddata}
1035       Check Operational Table   ${False}   ${upddata}
1036 Test Is Flow 112 Deleted
1037     [Documentation]    Checks if flow is not configured and operational 
1038       Init Flow Variables       f112.xml
1039       Check Config Flow         ${False}   ${upddata}
1040       Check Operational Table   ${False}   ${upddata}
1041 Test Is Flow 113 Deleted
1042     [Documentation]    Checks if flow is not configured and operational 
1043       Init Flow Variables       f113.xml
1044       Check Config Flow         ${False}   ${upddata}
1045       Check Operational Table   ${False}   ${upddata}
1046 Test Is Flow 114 Deleted
1047     [Documentation]    Checks if flow is not configured and operational 
1048       Init Flow Variables       f114.xml
1049       Check Config Flow         ${False}   ${upddata}
1050       Check Operational Table   ${False}   ${upddata}
1051 Test Is Flow 156 Deleted
1052     [Documentation]    Checks if flow is not configured and operational 
1053       Init Flow Variables       f156.xml
1054       Check Config Flow         ${False}   ${upddata}
1055       Check Operational Table   ${False}   ${upddata}
1056 Test Is Flow 157 Deleted
1057     [Documentation]    Checks if flow is not configured and operational 
1058       Init Flow Variables       f157.xml
1059       Check Config Flow         ${False}   ${upddata}
1060       Check Operational Table   ${False}   ${upddata}
1061 Test Is Flow 158 Deleted
1062     [Documentation]    Checks if flow is not configured and operational 
1063       Init Flow Variables       f158.xml
1064       Check Config Flow         ${False}   ${upddata}
1065       Check Operational Table   ${False}   ${upddata}
1066 Test Is Flow 159 Deleted
1067     [Documentation]    Checks if flow is not configured and operational 
1068       Init Flow Variables       f159.xml
1069       Check Config Flow         ${False}   ${upddata}
1070       Check Operational Table   ${False}   ${upddata}
1071 Test Is Flow 160 Deleted
1072     [Documentation]    Checks if flow is not configured and operational 
1073       Init Flow Variables       f160.xml
1074       Check Config Flow         ${False}   ${upddata}
1075       Check Operational Table   ${False}   ${upddata}
1076 Test Is Flow 201 Deleted
1077     [Documentation]    Checks if flow is not configured and operational 
1078       Init Flow Variables       f201.xml
1079       Check Config Flow         ${False}   ${upddata}
1080       Check Operational Table   ${False}   ${upddata}
1081 Test Is Flow 202 Deleted
1082     [Documentation]    Checks if flow is not configured and operational 
1083       Init Flow Variables       f202.xml
1084       Check Config Flow         ${False}   ${upddata}
1085       Check Operational Table   ${False}   ${upddata}
1086 Test Is Flow 203 Deleted
1087     [Documentation]    Checks if flow is not configured and operational 
1088       Init Flow Variables       f203.xml
1089       Check Config Flow         ${False}   ${upddata}
1090       Check Operational Table   ${False}   ${upddata}
1091 Test Is Flow 204 Deleted
1092     [Documentation]    Checks if flow is not configured and operational 
1093       Init Flow Variables       f204.xml
1094       Check Config Flow         ${False}   ${upddata}
1095       Check Operational Table   ${False}   ${upddata}
1096 Test Is Flow 205 Deleted
1097     [Documentation]    Checks if flow is not configured and operational 
1098       Init Flow Variables       f205.xml
1099       Check Config Flow         ${False}   ${upddata}
1100       Check Operational Table   ${False}   ${upddata}
1101 Test Is Flow 206 Deleted
1102     [Documentation]    Checks if flow is not configured and operational 
1103       Init Flow Variables       f206.xml
1104       Check Config Flow         ${False}   ${upddata}
1105       Check Operational Table   ${False}   ${upddata}
1106 Test Is Flow 207 Deleted
1107     [Documentation]    Checks if flow is not configured and operational 
1108       Init Flow Variables       f207.xml
1109       Check Config Flow         ${False}   ${upddata}
1110       Check Operational Table   ${False}   ${upddata}
1111 Test Is Flow 208 Deleted
1112     [Documentation]    Checks if flow is not configured and operational 
1113       Init Flow Variables       f208.xml
1114       Check Config Flow         ${False}   ${upddata}
1115       Check Operational Table   ${False}   ${upddata}
1116 Test Is Flow 209 Deleted
1117     [Documentation]    Checks if flow is not configured and operational 
1118       Init Flow Variables       f209.xml
1119       Check Config Flow         ${False}   ${upddata}
1120       Check Operational Table   ${False}   ${upddata}
1121 Test Is Flow 210 Deleted
1122     [Documentation]    Checks if flow is not configured and operational 
1123       Init Flow Variables       f210.xml
1124       Check Config Flow         ${False}   ${upddata}
1125       Check Operational Table   ${False}   ${upddata}
1126 Test Is Flow 211 Deleted
1127     [Documentation]    Checks if flow is not configured and operational 
1128       Init Flow Variables       f211.xml
1129       Check Config Flow         ${False}   ${upddata}
1130       Check Operational Table   ${False}   ${upddata}
1131 Test Is Flow 214 Deleted
1132     [Documentation]    Checks if flow is not configured and operational 
1133       Init Flow Variables       f214.xml
1134       Check Config Flow         ${False}   ${upddata}
1135       Check Operational Table   ${False}   ${upddata}
1136 Test Is Flow 218 Deleted
1137     [Documentation]    Checks if flow is not configured and operational 
1138       Init Flow Variables       f218.xml
1139       Check Config Flow         ${False}   ${upddata}
1140       Check Operational Table   ${False}   ${upddata}
1141 Test Is Flow 219 Deleted
1142     [Documentation]    Checks if flow is not configured and operational 
1143       Init Flow Variables       f219.xml
1144       Check Config Flow         ${False}   ${upddata}
1145       Check Operational Table   ${False}   ${upddata}
1146 Test Is Flow 220 Deleted
1147     [Documentation]    Checks if flow is not configured and operational 
1148       Init Flow Variables       f220.xml
1149       Check Config Flow         ${False}   ${upddata}
1150       Check Operational Table   ${False}   ${upddata}
1151
1152
1153 *** Keywords ***
1154 Init Flow Variables   [Arguments]   ${file}
1155       ${data}=       OperatingSystem.Get File     ${XmlsDir}/${file}
1156       ${xmlroot}=    Parse Xml    ${XmlsDir}/${file}
1157       ${table_id}=   Get Element Text   ${xmlroot}   table_id
1158       ${flow_id}=    Get Element Text   ${xmlroot}   id
1159       ${flow_priority}=    Get Element Text   ${xmlroot}   priority
1160       ${upddata}=    Get Data For Flow Put Update   ${data}
1161       Set Suite Variable   ${table_id}
1162       Set Suite Variable   ${flow_id}
1163       Set Suite Variable   ${flow_priority}
1164       Set Suite Variable   ${data}
1165       Set Suite Variable   ${upddata}
1166       Set Suite Variable   ${xmlroot}
1167 Check Config Flow   [Arguments]   ${expected}   ${expvalue}
1168          ${presence_flow}   ${msg}=      Flow Presence Config Flow    ${expvalue}
1169          ${msgf}=   Get Presence Failure Message    config    ${expected}    ${presence_flow}   ${msg} 
1170          Should Be Equal    ${expected}  ${presence_flow}   msg=${msgf}
1171 Flow Presence Config Flow  [Arguments]   ${expvalue}
1172          ${headers}=      Create Dictionary   Accept   application/xml
1173          ${resp}=   Get  session  /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}   headers=${headers}
1174          Log  ${resp}
1175          Log  ${resp.content}
1176          Return From Keyword If   ${resp.status_code}!=200  ${False}   ${EMPTY}
1177          ${pres}  ${msg}=  Is Flow Configured  ${expvalue}   ${resp.content}
1178          Run Keyword If   '''${msg}'''!='${EMPTY}'   Log   ${msg}
1179          Return From Keyword   ${pres}   ${msg}
1180 Check Operational Table  [Arguments]   ${expected}    ${expvalue}
1181          ${presence_table}  ${msg}=  Flow Presence Operational Table   ${expvalue}
1182          ${msgf}=   Get Presence Failure Message    operational    ${expected}    ${presence_table}   ${msg} 
1183          Should Be Equal  ${expected}  ${presence_table}  msg=${msgf}
1184 Flow Presence Operational Table   [Arguments]  ${expvalue}
1185          ${headers}=      Create Dictionary   Accept   application/xml
1186          ${resp}=   Get   session   /restconf/operational/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}    headers=${headers}
1187          Log   ${resp}
1188          Log   ${resp.content}
1189          Return From Keyword If    ${resp.status_code}!=200   ${False}   ${EMPTY}
1190          ${pres}   ${msg}=   Is Flow Operational2   ${expvalue}   ${resp.content}
1191          Run Keyword If   '''${msg}'''!='${EMPTY}'   Log   ${msg}
1192          Return From Keyword   ${pres}   ${msg}
1193 Delete All Flows
1194    [Documentation]    Deletes all flows
1195      :FOR   ${flowfile}   IN   @{flowlist0}
1196      \       Log   ${flowfile}
1197      \       Init Flow Variables   ${flowfile}
1198      \       Delete Flow
1199 Initialization Phase
1200   [Documentation]   Initiate tcp connection with controller
1201      Create Session   session   http://${CONTROLLER}:${PORT}   auth=${AUTH}   headers=${HEADERS_XML}
1202      Write    dpctl dump-flows -O OpenFlow13
1203      Sleep  1s
1204      ${switchouput}    Read
1205      Log     ${switchouput}
1206 Teardown Phase
1207   [Documentation]   Closes tcp connection with controller and removes flows
1208      Delete All Sessions
1209 Get Presence Failure Message   [Arguments]   ${ds}   ${expected}   ${presence}  ${diffmsg}
1210          Return From Keyword If   '''${diffmsg}'''!='${EMPTY}'  Flow found in ${ds} data store but: ${diffmsg}
1211          ${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
1212          ${msgp}=   Set Variable If   ${presence}==${True}   it is present.   it is not present.
1213          Return From Keyword   ${msgf} ${msgp}
1214 Add Flow
1215       Log             ${data}
1216       ${resp}=        Post    session   /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}   data=${data}
1217       Log             ${resp.content}
1218       ${msg}=  Set Variable   Adding flow for /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
1219       Should Be Equal As Strings   ${resp.status_code}   204   msg=${msg}
1220 Update Flow
1221        Log          ${upddata}
1222        ${resp}=     Putxml    session  /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}  data=${upddata}
1223        Log             ${resp.content}
1224        ${msg}=  Set Variable   Updating flow for /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
1225        Should Be Equal As Strings  ${resp.status_code}   200    msg=${msg}
1226 Delete Flow
1227       ${resp}=  Delete   session   /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
1228       Log             ${resp.content}
1229       ${msg}=  Set Variable  Delete flow for /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
1230       Should Be Equal As Strings   ${resp.status_code}   200   msg=${msg}