Modifying stats manager tests for collection of flow details
[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  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 201 Added
300     [Documentation]    Checks if flow is configured and operational
301       Init Flow Variables       f201.xml
302       Check Config Flow         ${True}   ${data}
303       Check Operational Table   ${True}   ${data}
304 Test Is Flow 202 Added
305     [Documentation]    Checks if flow is configured and operational
306       Init Flow Variables       f202.xml
307       Check Config Flow         ${True}   ${data}
308       Check Operational Table   ${True}   ${data}
309 Test Is Flow 203 Added
310     [Documentation]    Checks if flow is configured and operational
311       Init Flow Variables       f203.xml
312       Check Config Flow         ${True}   ${data}
313       Check Operational Table   ${True}   ${data}
314 Test Is Flow 204 Added
315     [Documentation]    Checks if flow is configured and operational
316       Init Flow Variables       f204.xml
317       Check Config Flow         ${True}   ${data}
318       Check Operational Table   ${True}   ${data}
319 Test Is Flow 205 Added
320     [Documentation]    Checks if flow is configured and operational
321       Init Flow Variables       f205.xml
322       Check Config Flow         ${True}   ${data}
323       Check Operational Table   ${True}   ${data}
324 Test Is Flow 206 Added
325     [Documentation]    Checks if flow is configured and operational
326       Init Flow Variables       f206.xml
327       Check Config Flow         ${True}   ${data}
328       Check Operational Table   ${True}   ${data}
329 Test Is Flow 207 Added
330     [Documentation]    Checks if flow is configured and operational
331       Init Flow Variables       f207.xml
332       Check Config Flow         ${True}   ${data}
333       Check Operational Table   ${True}   ${data}
334 Test Is Flow 208 Added
335     [Documentation]    Checks if flow is configured and operational
336       Init Flow Variables       f208.xml
337       Check Config Flow         ${True}   ${data}
338       Check Operational Table   ${True}   ${data}
339 Test Is Flow 209 Added
340     [Documentation]    Checks if flow is configured and operational
341       Init Flow Variables       f209.xml
342       Check Config Flow         ${True}   ${data}
343       Check Operational Table   ${True}   ${data}
344 Test Is Flow 210 Added
345     [Documentation]    Checks if flow is configured and operational
346       Init Flow Variables       f210.xml
347       Check Config Flow         ${True}   ${data}
348       Check Operational Table   ${True}   ${data}
349 Test Is Flow 211 Added
350     [Documentation]    Checks if flow is configured and operational
351       Init Flow Variables       f211.xml
352       Check Config Flow         ${True}   ${data}
353       Check Operational Table   ${True}   ${data}
354 Test Is Flow 214 Added
355     [Documentation]    Checks if flow is configured and operational
356       Init Flow Variables       f214.xml
357       Check Config Flow         ${True}   ${data}
358       Check Operational Table   ${True}   ${data}
359 Test Is Flow 218 Added
360     [Documentation]    Checks if flow is configured and operational
361       Init Flow Variables       f218.xml
362       Check Config Flow         ${True}   ${data}
363       Check Operational Table   ${True}   ${data}
364 Test Is Flow 219 Added
365     [Documentation]    Checks if flow is configured and operational
366       Init Flow Variables       f219.xml
367       Check Config Flow         ${True}   ${data}
368       Check Operational Table   ${True}   ${data}
369 Test Is Flow 220 Added
370     [Documentation]    Checks if flow is configured and operational
371       Init Flow Variables       f220.xml
372       Check Config Flow         ${True}   ${data}
373       Check Operational Table   ${True}   ${data}
374 Test Update Flows Group 0
375    [Documentation]    Update all flows and waits for SM to collect data
376      :FOR   ${flowfile}   IN   @{flowlist0}
377      \       Log   ${flowfile}
378      \       Init Flow Variables  ${flowfile}
379      \       Run Keyword And Continue On Failure   Update Flow
380      Sleep  40s
381      Write    dpctl dump-flows -O OpenFlow13
382      Sleep  1s
383      ${switchouput}    Read
384      Log     ${switchouput}
385 Test Is Flow 1 Updated
386     [Documentation]    Checks if flow is configured and operational
387       Init Flow Variables       f1.xml
388       Check Config Flow         ${True}   ${upddata}
389       Check Operational Table   ${True}   ${upddata}
390 Test Is Flow 2 Updated
391     [Documentation]    Checks if flow is configured and operational
392       Init Flow Variables       f2.xml
393       Check Config Flow         ${True}   ${upddata}
394       Check Operational Table   ${True}   ${upddata}
395 Test Is Flow 3 Updated
396     [Documentation]    Checks if flow is configured and operational
397       Init Flow Variables       f3.xml
398       Check Config Flow         ${True}   ${upddata}
399       Check Operational Table   ${True}   ${upddata}
400 Test Is Flow 4 Updated
401     [Documentation]    Checks if flow is configured and operational
402       Init Flow Variables       f4.xml
403       Check Config Flow         ${True}   ${upddata}
404       Check Operational Table   ${True}   ${upddata}
405 Test Is Flow 5 Updated
406     [Documentation]    Checks if flow is configured and operational
407       Init Flow Variables       f5.xml
408       Check Config Flow         ${True}   ${upddata}
409       Check Operational Table   ${True}   ${upddata}
410 Test Is Flow 6 Updated
411     [Documentation]    Checks if flow is configured and operational
412       Init Flow Variables       f6.xml
413       Check Config Flow         ${True}   ${upddata}
414       Check Operational Table   ${True}   ${upddata}
415 Test Is Flow 7 Updated
416     [Documentation]    Checks if flow is configured and operational
417       Init Flow Variables       f7.xml
418       Check Config Flow         ${True}   ${upddata}
419       Check Operational Table   ${True}   ${upddata}
420 Test Is Flow 8 Updated
421     [Documentation]    Checks if flow is configured and operational
422       Init Flow Variables       f8.xml
423       Check Config Flow         ${True}   ${upddata}
424       Check Operational Table   ${True}   ${upddata}
425 Test Is Flow 9 Updated
426     [Documentation]    Checks if flow is configured and operational
427       Init Flow Variables       f9.xml
428       Check Config Flow         ${True}   ${upddata}
429       Check Operational Table   ${True}   ${upddata}
430 Test Is Flow 10 Updated
431     [Documentation]    Checks if flow is configured and operational
432       Init Flow Variables       f10.xml
433       Check Config Flow         ${True}   ${upddata}
434       Check Operational Table   ${True}   ${upddata}
435 Test Is Flow 11 Updated
436     [Documentation]    Checks if flow is configured and operational
437       Init Flow Variables       f11.xml
438       Check Config Flow         ${True}   ${upddata}
439       Check Operational Table   ${True}   ${upddata}
440 Test Is Flow 12 Updated
441     [Documentation]    Checks if flow is configured and operational
442       Init Flow Variables       f12.xml
443       Check Config Flow         ${True}   ${upddata}
444       Check Operational Table   ${True}   ${upddata}
445 Test Is Flow 13 Updated
446     [Documentation]    Checks if flow is configured and operational
447       Init Flow Variables       f13.xml
448       Check Config Flow         ${True}   ${upddata}
449       Check Operational Table   ${True}   ${upddata}
450 Test Is Flow 14 Updated
451     [Documentation]    Checks if flow is configured and operational
452       Init Flow Variables       f14.xml
453       Check Config Flow         ${True}   ${upddata}
454       Check Operational Table   ${True}   ${upddata}
455 Test Is Flow 15 Updated
456     [Documentation]    Checks if flow is configured and operational
457       Init Flow Variables       f15.xml
458       Check Config Flow         ${True}   ${upddata}
459       Check Operational Table   ${True}   ${upddata}
460 Test Is Flow 16 Updated
461     [Documentation]    Checks if flow is configured and operational
462       Init Flow Variables       f16.xml
463       Check Config Flow         ${True}   ${upddata}
464       Check Operational Table   ${True}   ${upddata}
465 Test Is Flow 17 Updated
466     [Documentation]    Checks if flow is configured and operational
467       Init Flow Variables       f17.xml
468       Check Config Flow         ${True}   ${upddata}
469       Check Operational Table   ${True}   ${upddata}
470 Test Is Flow 18 Updated
471     [Documentation]    Checks if flow is configured and operational
472       Init Flow Variables       f18.xml
473       Check Config Flow         ${True}   ${upddata}
474       Check Operational Table   ${True}   ${upddata}
475 Test Is Flow 19 Updated
476     [Documentation]    Checks if flow is configured and operational
477       Init Flow Variables       f19.xml
478       Check Config Flow         ${True}   ${upddata}
479       Check Operational Table   ${True}   ${upddata}
480 Test Is Flow 20 Updated
481     [Documentation]    Checks if flow is configured and operational
482       Init Flow Variables       f20.xml
483       Check Config Flow         ${True}   ${upddata}
484       Check Operational Table   ${True}   ${upddata}
485 Test Is Flow 21 Updated
486     [Documentation]    Checks if flow is configured and operational
487       Init Flow Variables       f21.xml
488       Check Config Flow         ${True}   ${upddata}
489       Check Operational Table   ${True}   ${upddata}
490 Test Is Flow 22 Updated
491     [Documentation]    Checks if flow is configured and operational
492       Init Flow Variables       f22.xml
493       Check Config Flow         ${True}   ${upddata}
494       Check Operational Table   ${True}   ${upddata}
495 Test Is Flow 23 Updated
496     [Documentation]    Checks if flow is configured and operational
497       Init Flow Variables       f23.xml
498       Check Config Flow         ${True}   ${upddata}
499       Check Operational Table   ${True}   ${upddata}
500 Test Is Flow 24 Updated
501     [Documentation]    Checks if flow is configured and operational
502       Init Flow Variables       f24.xml
503       Check Config Flow         ${True}   ${upddata}
504       Check Operational Table   ${True}   ${upddata}
505 Test Is Flow 25 Updated
506     [Documentation]    Checks if flow is configured and operational
507       Init Flow Variables       f25.xml
508       Check Config Flow         ${True}   ${upddata}
509       Check Operational Table   ${True}   ${upddata}
510 Test Is Flow 29 Updated
511     [Documentation]    Checks if flow is configured and operational
512       Init Flow Variables       f29.xml
513       Check Config Flow         ${True}   ${upddata}
514       Check Operational Table   ${True}   ${upddata}
515 Test Is Flow 30 Updated
516     [Documentation]    Checks if flow is configured and operational
517       Init Flow Variables       f30.xml
518       Check Config Flow         ${True}   ${upddata}
519       Check Operational Table   ${True}   ${upddata}
520 Test Is Flow 31 Updated
521     [Documentation]    Checks if flow is configured and operational
522       Init Flow Variables       f31.xml
523       Check Config Flow         ${True}   ${upddata}
524       Check Operational Table   ${True}   ${upddata}
525 Test Is Flow 32 Updated
526     [Documentation]    Checks if flow is configured and operational
527       Init Flow Variables       f32.xml
528       Check Config Flow         ${True}   ${upddata}
529       Check Operational Table   ${True}   ${upddata}
530 Test Is Flow 33 Updated
531     [Documentation]    Checks if flow is configured and operational
532       Init Flow Variables       f33.xml
533       Check Config Flow         ${True}   ${upddata}
534       Check Operational Table   ${True}   ${upddata}
535 Test Is Flow 34 Updated
536     [Documentation]    Checks if flow is configured and operational
537       Init Flow Variables       f34.xml
538       Check Config Flow         ${True}   ${upddata}
539       Check Operational Table   ${True}   ${upddata}
540 Test Is Flow 35 Updated
541     [Documentation]    Checks if flow is configured and operational
542       Init Flow Variables       f35.xml
543       Check Config Flow         ${True}   ${upddata}
544       Check Operational Table   ${True}   ${upddata}
545 Test Is Flow 36 Updated
546     [Documentation]    Checks if flow is configured and operational
547       Init Flow Variables       f36.xml
548       Check Config Flow         ${True}   ${upddata}
549       Check Operational Table   ${True}   ${upddata}
550 Test Is Flow 38 Updated
551     [Documentation]    Checks if flow is configured and operational
552       Init Flow Variables       f38.xml
553       Check Config Flow         ${True}   ${upddata}
554       Check Operational Table   ${True}   ${upddata}
555 Test Is Flow 41 Updated
556     [Documentation]    Checks if flow is configured and operational
557       Init Flow Variables       f41.xml
558       Check Config Flow         ${True}   ${upddata}
559       Check Operational Table   ${True}   ${upddata}
560 Test Is Flow 42 Updated
561     [Documentation]    Checks if flow is configured and operational
562       Init Flow Variables       f42.xml
563       Check Config Flow         ${True}   ${upddata}
564       Check Operational Table   ${True}   ${upddata}
565 Test Is Flow 43 Updated
566     [Documentation]    Checks if flow is configured and operational
567       Init Flow Variables       f43.xml
568       Check Config Flow         ${True}   ${upddata}
569       Check Operational Table   ${True}   ${upddata}
570 Test Is Flow 45 Updated
571     [Documentation]    Checks if flow is configured and operational
572       Init Flow Variables       f45.xml
573       Check Config Flow         ${True}   ${upddata}
574       Check Operational Table   ${True}   ${upddata}
575 Test Is Flow 47 Updated
576     [Documentation]    Checks if flow is configured and operational
577       Init Flow Variables       f47.xml
578       Check Config Flow         ${True}   ${upddata}
579       Check Operational Table   ${True}   ${upddata}
580 Test Is Flow 101 Updated
581     [Documentation]    Checks if flow is configured and operational
582       Init Flow Variables       f101.xml
583       Check Config Flow         ${True}   ${upddata}
584       Check Operational Table   ${True}   ${upddata}
585 Test Is Flow 102 Updated
586     [Documentation]    Checks if flow is configured and operational
587       Init Flow Variables       f102.xml
588       Check Config Flow         ${True}   ${upddata}
589       Check Operational Table   ${True}   ${upddata}
590 Test Is Flow 103 Updated
591     [Documentation]    Checks if flow is configured and operational
592       Init Flow Variables       f103.xml
593       Check Config Flow         ${True}   ${upddata}
594       Check Operational Table   ${True}   ${upddata}
595 Test Is Flow 104 Updated
596     [Documentation]    Checks if flow is configured and operational
597       Init Flow Variables       f104.xml
598       Check Config Flow         ${True}   ${upddata}
599       Check Operational Table   ${True}   ${upddata}
600 Test Is Flow 105 Updated
601     [Documentation]    Checks if flow is configured and operational
602       Init Flow Variables       f105.xml
603       Check Config Flow         ${True}   ${upddata}
604       Check Operational Table   ${True}   ${upddata}
605 Test Is Flow 106 Updated
606     [Documentation]    Checks if flow is configured and operational
607       Init Flow Variables       f106.xml
608       Check Config Flow         ${True}   ${upddata}
609       Check Operational Table   ${True}   ${upddata}
610 Test Is Flow 107 Updated
611     [Documentation]    Checks if flow is configured and operational
612       Init Flow Variables       f107.xml
613       Check Config Flow         ${True}   ${upddata}
614       Check Operational Table   ${True}   ${upddata}
615 Test Is Flow 108 Updated
616     [Documentation]    Checks if flow is configured and operational
617       Init Flow Variables       f108.xml
618       Check Config Flow         ${True}   ${upddata}
619       Check Operational Table   ${True}   ${upddata}
620 Test Is Flow 109 Updated
621     [Documentation]    Checks if flow is configured and operational
622       Init Flow Variables       f109.xml
623       Check Config Flow         ${True}   ${upddata}
624       Check Operational Table   ${True}   ${upddata}
625 Test Is Flow 110 Updated
626     [Documentation]    Checks if flow is configured and operational
627       Init Flow Variables       f110.xml
628       Check Config Flow         ${True}   ${upddata}
629       Check Operational Table   ${True}   ${upddata}
630 Test Is Flow 111 Updated
631     [Documentation]    Checks if flow is configured and operational
632       Init Flow Variables       f111.xml
633       Check Config Flow         ${True}   ${upddata}
634       Check Operational Table   ${True}   ${upddata}
635 Test Is Flow 112 Updated
636     [Documentation]    Checks if flow is configured and operational
637       Init Flow Variables       f112.xml
638       Check Config Flow         ${True}   ${upddata}
639       Check Operational Table   ${True}   ${upddata}
640 Test Is Flow 113 Updated
641     [Documentation]    Checks if flow is configured and operational
642       Init Flow Variables       f113.xml
643       Check Config Flow         ${True}   ${upddata}
644       Check Operational Table   ${True}   ${upddata}
645 Test Is Flow 114 Updated
646     [Documentation]    Checks if flow is configured and operational
647       Init Flow Variables       f114.xml
648       Check Config Flow         ${True}   ${upddata}
649       Check Operational Table   ${True}   ${upddata}
650 Test Is Flow 201 Updated
651     [Documentation]    Checks if flow is configured and operational
652       Init Flow Variables       f201.xml
653       Check Config Flow         ${True}   ${upddata}
654       Check Operational Table   ${True}   ${upddata}
655 Test Is Flow 202 Updated
656     [Documentation]    Checks if flow is configured and operational
657       Init Flow Variables       f202.xml
658       Check Config Flow         ${True}   ${upddata}
659       Check Operational Table   ${True}   ${upddata}
660 Test Is Flow 203 Updated
661     [Documentation]    Checks if flow is configured and operational
662       Init Flow Variables       f203.xml
663       Check Config Flow         ${True}   ${upddata}
664       Check Operational Table   ${True}   ${upddata}
665 Test Is Flow 204 Updated
666     [Documentation]    Checks if flow is configured and operational
667       Init Flow Variables       f204.xml
668       Check Config Flow         ${True}   ${upddata}
669       Check Operational Table   ${True}   ${upddata}
670 Test Is Flow 205 Updated
671     [Documentation]    Checks if flow is configured and operational
672       Init Flow Variables       f205.xml
673       Check Config Flow         ${True}   ${upddata}
674       Check Operational Table   ${True}   ${upddata}
675 Test Is Flow 206 Updated
676     [Documentation]    Checks if flow is configured and operational
677       Init Flow Variables       f206.xml
678       Check Config Flow         ${True}   ${upddata}
679       Check Operational Table   ${True}   ${upddata}
680 Test Is Flow 207 Updated
681     [Documentation]    Checks if flow is configured and operational
682       Init Flow Variables       f207.xml
683       Check Config Flow         ${True}   ${upddata}
684       Check Operational Table   ${True}   ${upddata}
685 Test Is Flow 208 Updated
686     [Documentation]    Checks if flow is configured and operational
687       Init Flow Variables       f208.xml
688       Check Config Flow         ${True}   ${upddata}
689       Check Operational Table   ${True}   ${upddata}
690 Test Is Flow 209 Updated
691     [Documentation]    Checks if flow is configured and operational
692       Init Flow Variables       f209.xml
693       Check Config Flow         ${True}   ${upddata}
694       Check Operational Table   ${True}   ${upddata}
695 Test Is Flow 210 Updated
696     [Documentation]    Checks if flow is configured and operational
697       Init Flow Variables       f210.xml
698       Check Config Flow         ${True}   ${upddata}
699       Check Operational Table   ${True}   ${upddata}
700 Test Is Flow 211 Updated
701     [Documentation]    Checks if flow is configured and operational
702       Init Flow Variables       f211.xml
703       Check Config Flow         ${True}   ${upddata}
704       Check Operational Table   ${True}   ${upddata}
705 Test Is Flow 214 Updated
706     [Documentation]    Checks if flow is configured and operational
707       Init Flow Variables       f214.xml
708       Check Config Flow         ${True}   ${upddata}
709       Check Operational Table   ${True}   ${upddata}
710 Test Is Flow 218 Updated
711     [Documentation]    Checks if flow is configured and operational
712       Init Flow Variables       f218.xml
713       Check Config Flow         ${True}   ${upddata}
714       Check Operational Table   ${True}   ${upddata}
715 Test Is Flow 219 Updated
716     [Documentation]    Checks if flow is configured and operational
717       Init Flow Variables       f219.xml
718       Check Config Flow         ${True}   ${upddata}
719       Check Operational Table   ${True}   ${upddata}
720 Test Is Flow 220 Updated
721     [Documentation]    Checks if flow is configured and operational
722       Init Flow Variables       f220.xml
723       Check Config Flow         ${True}   ${upddata}
724       Check Operational Table   ${True}   ${upddata}
725 Test Delete Flows Group 0
726    [Documentation]    Delete all flows and waits for SM to collect data
727      :FOR   ${flowfile}   IN   @{flowlist0}
728      \       Log   ${flowfile}
729      \       Init Flow Variables   ${flowfile}
730      \       Run Keyword And Continue On Failure   Delete Flow
731      Sleep  40s
732      Write    dpctl dump-flows -O OpenFlow13
733      Sleep  1s
734      ${switchouput}    Read
735      Log     ${switchouput}
736 Test Is Flow 1 Deleted
737     [Documentation]    Checks if flow is not configured and operational 
738       Init Flow Variables       f1.xml
739       Check Config Flow         ${False}   ${upddata}
740       Check Operational Table   ${False}   ${upddata}
741 Test Is Flow 2 Deleted
742     [Documentation]    Checks if flow is not configured and operational 
743       Init Flow Variables       f2.xml
744       Check Config Flow         ${False}   ${upddata}
745       Check Operational Table   ${False}   ${upddata}
746 Test Is Flow 3 Deleted
747     [Documentation]    Checks if flow is not configured and operational 
748       Init Flow Variables       f3.xml
749       Check Config Flow         ${False}   ${upddata}
750       Check Operational Table   ${False}   ${upddata}
751 Test Is Flow 4 Deleted
752     [Documentation]    Checks if flow is not configured and operational 
753       Init Flow Variables       f4.xml
754       Check Config Flow         ${False}   ${upddata}
755       Check Operational Table   ${False}   ${upddata}
756 Test Is Flow 5 Deleted
757     [Documentation]    Checks if flow is not configured and operational 
758       Init Flow Variables       f5.xml
759       Check Config Flow         ${False}   ${upddata}
760       Check Operational Table   ${False}   ${upddata}
761 Test Is Flow 6 Deleted
762     [Documentation]    Checks if flow is not configured and operational 
763       Init Flow Variables       f6.xml
764       Check Config Flow         ${False}   ${upddata}
765       Check Operational Table   ${False}   ${upddata}
766 Test Is Flow 7 Deleted
767     [Documentation]    Checks if flow is not configured and operational 
768       Init Flow Variables       f7.xml
769       Check Config Flow         ${False}   ${upddata}
770       Check Operational Table   ${False}   ${upddata}
771 Test Is Flow 8 Deleted
772     [Documentation]    Checks if flow is not configured and operational 
773       Init Flow Variables       f8.xml
774       Check Config Flow         ${False}   ${upddata}
775       Check Operational Table   ${False}   ${upddata}
776 Test Is Flow 9 Deleted
777     [Documentation]    Checks if flow is not configured and operational 
778       Init Flow Variables       f9.xml
779       Check Config Flow         ${False}   ${upddata}
780       Check Operational Table   ${False}   ${upddata}
781 Test Is Flow 10 Deleted
782     [Documentation]    Checks if flow is not configured and operational 
783       Init Flow Variables       f10.xml
784       Check Config Flow         ${False}   ${upddata}
785       Check Operational Table   ${False}   ${upddata}
786 Test Is Flow 11 Deleted
787     [Documentation]    Checks if flow is not configured and operational 
788       Init Flow Variables       f11.xml
789       Check Config Flow         ${False}   ${upddata}
790       Check Operational Table   ${False}   ${upddata}
791 Test Is Flow 12 Deleted
792     [Documentation]    Checks if flow is not configured and operational 
793       Init Flow Variables       f12.xml
794       Check Config Flow         ${False}   ${upddata}
795       Check Operational Table   ${False}   ${upddata}
796 Test Is Flow 13 Deleted
797     [Documentation]    Checks if flow is not configured and operational 
798       Init Flow Variables       f13.xml
799       Check Config Flow         ${False}   ${upddata}
800       Check Operational Table   ${False}   ${upddata}
801 Test Is Flow 14 Deleted
802     [Documentation]    Checks if flow is not configured and operational 
803       Init Flow Variables       f14.xml
804       Check Config Flow         ${False}   ${upddata}
805       Check Operational Table   ${False}   ${upddata}
806 Test Is Flow 15 Deleted
807     [Documentation]    Checks if flow is not configured and operational 
808       Init Flow Variables       f15.xml
809       Check Config Flow         ${False}   ${upddata}
810       Check Operational Table   ${False}   ${upddata}
811 Test Is Flow 16 Deleted
812     [Documentation]    Checks if flow is not configured and operational 
813       Init Flow Variables       f16.xml
814       Check Config Flow         ${False}   ${upddata}
815       Check Operational Table   ${False}   ${upddata}
816 Test Is Flow 17 Deleted
817     [Documentation]    Checks if flow is not configured and operational 
818       Init Flow Variables       f17.xml
819       Check Config Flow         ${False}   ${upddata}
820       Check Operational Table   ${False}   ${upddata}
821 Test Is Flow 18 Deleted
822     [Documentation]    Checks if flow is not configured and operational 
823       Init Flow Variables       f18.xml
824       Check Config Flow         ${False}   ${upddata}
825       Check Operational Table   ${False}   ${upddata}
826 Test Is Flow 19 Deleted
827     [Documentation]    Checks if flow is not configured and operational 
828       Init Flow Variables       f19.xml
829       Check Config Flow         ${False}   ${upddata}
830       Check Operational Table   ${False}   ${upddata}
831 Test Is Flow 20 Deleted
832     [Documentation]    Checks if flow is not configured and operational 
833       Init Flow Variables       f20.xml
834       Check Config Flow         ${False}   ${upddata}
835       Check Operational Table   ${False}   ${upddata}
836 Test Is Flow 21 Deleted
837     [Documentation]    Checks if flow is not configured and operational 
838       Init Flow Variables       f21.xml
839       Check Config Flow         ${False}   ${upddata}
840       Check Operational Table   ${False}   ${upddata}
841 Test Is Flow 22 Deleted
842     [Documentation]    Checks if flow is not configured and operational 
843       Init Flow Variables       f22.xml
844       Check Config Flow         ${False}   ${upddata}
845       Check Operational Table   ${False}   ${upddata}
846 Test Is Flow 23 Deleted
847     [Documentation]    Checks if flow is not configured and operational 
848       Init Flow Variables       f23.xml
849       Check Config Flow         ${False}   ${upddata}
850       Check Operational Table   ${False}   ${upddata}
851 Test Is Flow 24 Deleted
852     [Documentation]    Checks if flow is not configured and operational 
853       Init Flow Variables       f24.xml
854       Check Config Flow         ${False}   ${upddata}
855       Check Operational Table   ${False}   ${upddata}
856 Test Is Flow 25 Deleted
857     [Documentation]    Checks if flow is not configured and operational 
858       Init Flow Variables       f25.xml
859       Check Config Flow         ${False}   ${upddata}
860       Check Operational Table   ${False}   ${upddata}
861 Test Is Flow 29 Deleted
862     [Documentation]    Checks if flow is not configured and operational 
863       Init Flow Variables       f29.xml
864       Check Config Flow         ${False}   ${upddata}
865       Check Operational Table   ${False}   ${upddata}
866 Test Is Flow 30 Deleted
867     [Documentation]    Checks if flow is not configured and operational 
868       Init Flow Variables       f30.xml
869       Check Config Flow         ${False}   ${upddata}
870       Check Operational Table   ${False}   ${upddata}
871 Test Is Flow 31 Deleted
872     [Documentation]    Checks if flow is not configured and operational 
873       Init Flow Variables       f31.xml
874       Check Config Flow         ${False}   ${upddata}
875       Check Operational Table   ${False}   ${upddata}
876 Test Is Flow 32 Deleted
877     [Documentation]    Checks if flow is not configured and operational 
878       Init Flow Variables       f32.xml
879       Check Config Flow         ${False}   ${upddata}
880       Check Operational Table   ${False}   ${upddata}
881 Test Is Flow 33 Deleted
882     [Documentation]    Checks if flow is not configured and operational 
883       Init Flow Variables       f33.xml
884       Check Config Flow         ${False}   ${upddata}
885       Check Operational Table   ${False}   ${upddata}
886 Test Is Flow 34 Deleted
887     [Documentation]    Checks if flow is not configured and operational 
888       Init Flow Variables       f34.xml
889       Check Config Flow         ${False}   ${upddata}
890       Check Operational Table   ${False}   ${upddata}
891 Test Is Flow 35 Deleted
892     [Documentation]    Checks if flow is not configured and operational 
893       Init Flow Variables       f35.xml
894       Check Config Flow         ${False}   ${upddata}
895       Check Operational Table   ${False}   ${upddata}
896 Test Is Flow 36 Deleted
897     [Documentation]    Checks if flow is not configured and operational 
898       Init Flow Variables       f36.xml
899       Check Config Flow         ${False}   ${upddata}
900       Check Operational Table   ${False}   ${upddata}
901 Test Is Flow 38 Deleted
902     [Documentation]    Checks if flow is not configured and operational 
903       Init Flow Variables       f38.xml
904       Check Config Flow         ${False}   ${upddata}
905       Check Operational Table   ${False}   ${upddata}
906 Test Is Flow 41 Deleted
907     [Documentation]    Checks if flow is not configured and operational 
908       Init Flow Variables       f41.xml
909       Check Config Flow         ${False}   ${upddata}
910       Check Operational Table   ${False}   ${upddata}
911 Test Is Flow 42 Deleted
912     [Documentation]    Checks if flow is not configured and operational 
913       Init Flow Variables       f42.xml
914       Check Config Flow         ${False}   ${upddata}
915       Check Operational Table   ${False}   ${upddata}
916 Test Is Flow 43 Deleted
917     [Documentation]    Checks if flow is not configured and operational 
918       Init Flow Variables       f43.xml
919       Check Config Flow         ${False}   ${upddata}
920       Check Operational Table   ${False}   ${upddata}
921 Test Is Flow 45 Deleted
922     [Documentation]    Checks if flow is not configured and operational 
923       Init Flow Variables       f45.xml
924       Check Config Flow         ${False}   ${upddata}
925       Check Operational Table   ${False}   ${upddata}
926 Test Is Flow 47 Deleted
927     [Documentation]    Checks if flow is not configured and operational 
928       Init Flow Variables       f47.xml
929       Check Config Flow         ${False}   ${upddata}
930       Check Operational Table   ${False}   ${upddata}
931 Test Is Flow 101 Deleted
932     [Documentation]    Checks if flow is not configured and operational 
933       Init Flow Variables       f101.xml
934       Check Config Flow         ${False}   ${upddata}
935       Check Operational Table   ${False}   ${upddata}
936 Test Is Flow 102 Deleted
937     [Documentation]    Checks if flow is not configured and operational 
938       Init Flow Variables       f102.xml
939       Check Config Flow         ${False}   ${upddata}
940       Check Operational Table   ${False}   ${upddata}
941 Test Is Flow 103 Deleted
942     [Documentation]    Checks if flow is not configured and operational 
943       Init Flow Variables       f103.xml
944       Check Config Flow         ${False}   ${upddata}
945       Check Operational Table   ${False}   ${upddata}
946 Test Is Flow 104 Deleted
947     [Documentation]    Checks if flow is not configured and operational 
948       Init Flow Variables       f104.xml
949       Check Config Flow         ${False}   ${upddata}
950       Check Operational Table   ${False}   ${upddata}
951 Test Is Flow 105 Deleted
952     [Documentation]    Checks if flow is not configured and operational 
953       Init Flow Variables       f105.xml
954       Check Config Flow         ${False}   ${upddata}
955       Check Operational Table   ${False}   ${upddata}
956 Test Is Flow 106 Deleted
957     [Documentation]    Checks if flow is not configured and operational 
958       Init Flow Variables       f106.xml
959       Check Config Flow         ${False}   ${upddata}
960       Check Operational Table   ${False}   ${upddata}
961 Test Is Flow 107 Deleted
962     [Documentation]    Checks if flow is not configured and operational 
963       Init Flow Variables       f107.xml
964       Check Config Flow         ${False}   ${upddata}
965       Check Operational Table   ${False}   ${upddata}
966 Test Is Flow 108 Deleted
967     [Documentation]    Checks if flow is not configured and operational 
968       Init Flow Variables       f108.xml
969       Check Config Flow         ${False}   ${upddata}
970       Check Operational Table   ${False}   ${upddata}
971 Test Is Flow 109 Deleted
972     [Documentation]    Checks if flow is not configured and operational 
973       Init Flow Variables       f109.xml
974       Check Config Flow         ${False}   ${upddata}
975       Check Operational Table   ${False}   ${upddata}
976 Test Is Flow 110 Deleted
977     [Documentation]    Checks if flow is not configured and operational 
978       Init Flow Variables       f110.xml
979       Check Config Flow         ${False}   ${upddata}
980       Check Operational Table   ${False}   ${upddata}
981 Test Is Flow 111 Deleted
982     [Documentation]    Checks if flow is not configured and operational 
983       Init Flow Variables       f111.xml
984       Check Config Flow         ${False}   ${upddata}
985       Check Operational Table   ${False}   ${upddata}
986 Test Is Flow 112 Deleted
987     [Documentation]    Checks if flow is not configured and operational 
988       Init Flow Variables       f112.xml
989       Check Config Flow         ${False}   ${upddata}
990       Check Operational Table   ${False}   ${upddata}
991 Test Is Flow 113 Deleted
992     [Documentation]    Checks if flow is not configured and operational 
993       Init Flow Variables       f113.xml
994       Check Config Flow         ${False}   ${upddata}
995       Check Operational Table   ${False}   ${upddata}
996 Test Is Flow 114 Deleted
997     [Documentation]    Checks if flow is not configured and operational 
998       Init Flow Variables       f114.xml
999       Check Config Flow         ${False}   ${upddata}
1000       Check Operational Table   ${False}   ${upddata}
1001 Test Is Flow 201 Deleted
1002     [Documentation]    Checks if flow is not configured and operational 
1003       Init Flow Variables       f201.xml
1004       Check Config Flow         ${False}   ${upddata}
1005       Check Operational Table   ${False}   ${upddata}
1006 Test Is Flow 202 Deleted
1007     [Documentation]    Checks if flow is not configured and operational 
1008       Init Flow Variables       f202.xml
1009       Check Config Flow         ${False}   ${upddata}
1010       Check Operational Table   ${False}   ${upddata}
1011 Test Is Flow 203 Deleted
1012     [Documentation]    Checks if flow is not configured and operational 
1013       Init Flow Variables       f203.xml
1014       Check Config Flow         ${False}   ${upddata}
1015       Check Operational Table   ${False}   ${upddata}
1016 Test Is Flow 204 Deleted
1017     [Documentation]    Checks if flow is not configured and operational 
1018       Init Flow Variables       f204.xml
1019       Check Config Flow         ${False}   ${upddata}
1020       Check Operational Table   ${False}   ${upddata}
1021 Test Is Flow 205 Deleted
1022     [Documentation]    Checks if flow is not configured and operational 
1023       Init Flow Variables       f205.xml
1024       Check Config Flow         ${False}   ${upddata}
1025       Check Operational Table   ${False}   ${upddata}
1026 Test Is Flow 206 Deleted
1027     [Documentation]    Checks if flow is not configured and operational 
1028       Init Flow Variables       f206.xml
1029       Check Config Flow         ${False}   ${upddata}
1030       Check Operational Table   ${False}   ${upddata}
1031 Test Is Flow 207 Deleted
1032     [Documentation]    Checks if flow is not configured and operational 
1033       Init Flow Variables       f207.xml
1034       Check Config Flow         ${False}   ${upddata}
1035       Check Operational Table   ${False}   ${upddata}
1036 Test Is Flow 208 Deleted
1037     [Documentation]    Checks if flow is not configured and operational 
1038       Init Flow Variables       f208.xml
1039       Check Config Flow         ${False}   ${upddata}
1040       Check Operational Table   ${False}   ${upddata}
1041 Test Is Flow 209 Deleted
1042     [Documentation]    Checks if flow is not configured and operational 
1043       Init Flow Variables       f209.xml
1044       Check Config Flow         ${False}   ${upddata}
1045       Check Operational Table   ${False}   ${upddata}
1046 Test Is Flow 210 Deleted
1047     [Documentation]    Checks if flow is not configured and operational 
1048       Init Flow Variables       f210.xml
1049       Check Config Flow         ${False}   ${upddata}
1050       Check Operational Table   ${False}   ${upddata}
1051 Test Is Flow 211 Deleted
1052     [Documentation]    Checks if flow is not configured and operational 
1053       Init Flow Variables       f211.xml
1054       Check Config Flow         ${False}   ${upddata}
1055       Check Operational Table   ${False}   ${upddata}
1056 Test Is Flow 214 Deleted
1057     [Documentation]    Checks if flow is not configured and operational 
1058       Init Flow Variables       f214.xml
1059       Check Config Flow         ${False}   ${upddata}
1060       Check Operational Table   ${False}   ${upddata}
1061 Test Is Flow 218 Deleted
1062     [Documentation]    Checks if flow is not configured and operational 
1063       Init Flow Variables       f218.xml
1064       Check Config Flow         ${False}   ${upddata}
1065       Check Operational Table   ${False}   ${upddata}
1066 Test Is Flow 219 Deleted
1067     [Documentation]    Checks if flow is not configured and operational 
1068       Init Flow Variables       f219.xml
1069       Check Config Flow         ${False}   ${upddata}
1070       Check Operational Table   ${False}   ${upddata}
1071 Test Is Flow 220 Deleted
1072     [Documentation]    Checks if flow is not configured and operational 
1073       Init Flow Variables       f220.xml
1074       Check Config Flow         ${False}   ${upddata}
1075       Check Operational Table   ${False}   ${upddata}
1076
1077
1078 *** Keywords ***
1079 Init Flow Variables   [Arguments]   ${file}
1080       ${data}=       OperatingSystem.Get File     ${XmlsDir}/${file}
1081       ${xmlroot}=    Parse Xml    ${XmlsDir}/${file}
1082       ${table_id}=   Get Element Text   ${xmlroot}   table_id
1083       ${flow_id}=    Get Element Text   ${xmlroot}   id
1084       ${flow_priority}=    Get Element Text   ${xmlroot}   priority
1085       ${upddata}=    Get Data For Flow Put Update   ${data}
1086       Set Suite Variable   ${table_id}
1087       Set Suite Variable   ${flow_id}
1088       Set Suite Variable   ${flow_priority}
1089       Set Suite Variable   ${data}
1090       Set Suite Variable   ${upddata}
1091       Set Suite Variable   ${xmlroot}
1092 Check Config Flow   [Arguments]   ${expected}   ${expvalue}
1093          ${presence_flow}   ${msg}=      Flow Presence Config Flow    ${expvalue}
1094          ${msgf}=   Get Presence Failure Message    config    ${expected}    ${presence_flow}   ${msg} 
1095          Should Be Equal    ${expected}  ${presence_flow}   msg=${msgf}
1096 Flow Presence Config Flow  [Arguments]   ${expvalue}
1097          ${headers}=      Create Dictionary   Accept   application/xml
1098          ${resp}=   Get  session  /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}   headers=${headers}
1099          Log  ${resp}
1100          Log  ${resp.content}
1101          Return From Keyword If   ${resp.status_code}!=200  ${False}   ${EMPTY}
1102          ${pres}  ${msg}=  Is Flow Configured  ${expvalue}   ${resp.content}
1103          Run Keyword If   '''${msg}'''!='${EMPTY}'   Log   ${msg}
1104          Return From Keyword   ${pres}   ${msg}
1105 Check Operational Table  [Arguments]   ${expected}    ${expvalue}
1106          ${presence_table}  ${msg}=  Flow Presence Operational Table   ${expvalue}
1107          ${msgf}=   Get Presence Failure Message    operational    ${expected}    ${presence_table}   ${msg} 
1108          Should Be Equal  ${expected}  ${presence_table}  msg=${msgf}
1109 Flow Presence Operational Table   [Arguments]  ${expvalue}
1110          ${headers}=      Create Dictionary   Accept   application/xml
1111          ${resp}=   Get   session   /restconf/operational/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}    headers=${headers}
1112          Log   ${resp}
1113          Log   ${resp.content}
1114          Return From Keyword If    ${resp.status_code}!=200   ${False}   ${EMPTY}
1115          ${pres}   ${msg}=   Is Flow Operational2   ${expvalue}   ${resp.content}
1116          Run Keyword If   '''${msg}'''!='${EMPTY}'   Log   ${msg}
1117          Return From Keyword   ${pres}   ${msg}
1118 Delete All Flows
1119    [Documentation]    Deletes all flows
1120      :FOR   ${flowfile}   IN   @{flowlist0}
1121      \       Log   ${flowfile}
1122      \       Init Flow Variables   ${flowfile}
1123      \       Delete Flow
1124 Initialization Phase
1125   [Documentation]   Initiate tcp connection with controller
1126      Create Session   session   http://${CONTROLLER}:${PORT}   auth=${AUTH}   headers=${HEADERS_XML}
1127      Write    dpctl dump-flows -O OpenFlow13
1128      Sleep  1s
1129      ${switchouput}    Read
1130      Log     ${switchouput}
1131 Teardown Phase
1132   [Documentation]   Closes tcp connection with controller and removes flows
1133      Delete All Sessions
1134 Get Presence Failure Message   [Arguments]   ${ds}   ${expected}   ${presence}  ${diffmsg}
1135          Return From Keyword If   '''${diffmsg}'''!='${EMPTY}'  Flow found in ${ds} data store but: ${diffmsg}
1136          ${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
1137          ${msgp}=   Set Variable If   ${presence}==${True}   it is present.   it is not present.
1138          Return From Keyword   ${msgf} ${msgp}
1139 Add Flow
1140       Log             ${data}
1141       ${resp}=        Post    session   /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}   data=${data}
1142       Log             ${resp.content}
1143       ${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.
1144       Should Be Equal As Strings   ${resp.status_code}   204   msg=${msg}
1145 Update Flow
1146        Log          ${upddata}
1147        ${resp}=     Putxml    session  /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}  data=${upddata}
1148        Log             ${resp.content}
1149        ${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.
1150        Should Be Equal As Strings  ${resp.status_code}   200    msg=${msg}
1151 Delete Flow
1152       ${resp}=  Delete   session   /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
1153       Log             ${resp.content}
1154       ${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.
1155       Should Be Equal As Strings   ${resp.status_code}   200   msg=${msg}