Give the ability to define the output format of dump-flows
diff --git a/TestON/drivers/common/cli/emulator/mininetclidriver.py b/TestON/drivers/common/cli/emulator/mininetclidriver.py
index f049074..4b826d4 100644
--- a/TestON/drivers/common/cli/emulator/mininetclidriver.py
+++ b/TestON/drivers/common/cli/emulator/mininetclidriver.py
@@ -676,8 +676,11 @@
else:
main.log.error("Connection failed to the Mininet host")
- def check_flows(self, sw):
- command = "sh ovs-ofctl dump-flows "+str(sw)
+ def check_flows(self, sw, dump_format=None):
+ if dump_format:
+ command = "sh ovs-ofctl -F " + dump_format + " dump-flows " + str(sw)
+ else:
+ command = "sh ovs-ofctl dump-flows "+str(sw)
try:
response=self.execute(cmd=command,prompt="mininet>",timeout=10)
return response