f0d37a2d90cf43214527e9ccaa740d82690fca10
[integration/test.git] / csit / suites / groupbasedpolicy / common_scripts / dpdumpflows.py
1 #!/usr/bin/python
2
3 from subprocess import check_output
4
5
6 def call_dpctl():
7     cmd = "ovs-dpctl dump-flows"
8     listcmd = cmd.split()
9     return check_output(listcmd)
10
11 if __name__ == "__main__":
12     flows = call_dpctl().split("recirc_id")
13     for flow in flows:
14         print flow