From 29f54066adb9feb8b6a10eb4226416d98d55d89f Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Thu, 11 Aug 2016 16:39:08 +0200 Subject: [PATCH] Bug fix to eliminate undeterministic behaviour 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 --- testcases/features/sfc/sfc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py index 17ab386f..bdd27905 100755 --- a/testcases/features/sfc/sfc.py +++ b/testcases/features/sfc/sfc.py @@ -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" -- 2.16.6