Dumping flows on each test now
Change-Id: Iec628582c76b287868d7ee405dbed128d93cc3fe
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index e1d298a..93026c2 100644
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -2139,6 +2139,9 @@
main.cleanup()
main.exit()
+ def checkFlowCount(self, min=0, timeout=60 ):
+ count = int(self.getTotalFlowsNum( timeout=timeout ))
+ return count if (count > min) else False
def checkFlowsState( self, isPENDING=True, timeout=60 ):
"""
@@ -2291,7 +2294,7 @@
return totalFlows
- return totalFlows
+ return int(totalFlows)
except TypeError:
main.log.exception( self.name + ": Object not as expected" )