commit | 083ae9884f12942c49cd61bc0fcefa40a2cff8ac | [log] [tgz] |
---|---|---|
author | You Wang <you@onlab.us> | Wed May 25 09:31:09 2016 -0700 |
committer | You Wang <you@onlab.us> | Wed May 25 09:31:09 2016 -0700 |
tree | c7b9cf6c89a98e07e53e7933f865e9a2fab590fd | |
parent | 4c0165eca78d280e509571857b15a31cf225ebb5 [diff] |
Add error handling for checkFlowId in MininetCliDriver Change-Id: I1df72868335dbf352bfb4023c03ba7b5dbb16d72
diff --git a/TestON/drivers/common/cli/emulator/mininetclidriver.py b/TestON/drivers/common/cli/emulator/mininetclidriver.py index 3eb5577..b38e257 100644 --- a/TestON/drivers/common/cli/emulator/mininetclidriver.py +++ b/TestON/drivers/common/cli/emulator/mininetclidriver.py
@@ -2321,6 +2321,8 @@ try: main.log.info( "Getting flows from Mininet" ) flows = self.getFlowTable( sw, version, debug ) + if flows == None: + return main.ERROR if debug: print "flow ids:\n{}\n\n".format(flowId)