Bug fix to eliminate undeterministic behaviour
authorManuel Buil <manuel.buil@ericsson.com>
Thu, 11 Aug 2016 14:39:08 +0000 (16:39 +0200)
committerManuel Buil <manuel.buil@ericsson.com>
Thu, 11 Aug 2016 14:39:08 +0000 (16:39 +0200)
When changing the classifier, ODL needs some seconds to update
the switches and sometimes they are not changed when the script
executes the second part of the test ==> test fails

Change-Id: I1fa3306eb7b283d708dbd736d2365456559db9b9
Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
testcases/features/sfc/sfc.py

index 17ab386..bdd2790 100755 (executable)
@@ -349,6 +349,9 @@ def main():
         TACKER_CHANGECLASSI
     subprocess.call(tacker_classi, shell=True)
 
+    logger.info("Wait for ODL to update the classification rules in OVS")
+    time.sleep(10)
+
     # SSH to modify the classification flows in compute
 
     contr_cmd4 = ("sshpass -p r00tme ssh " + ssh_options + " root@10.20.0.2"