apply checkstyle check during build for neutron-mapper
[groupbasedpolicy.git] / demos / gbpsfc-env / 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         print
14         print "Flows from dpctl:"
15         print 
16         for flow in flows:
17                 if flow != "": print "recirc_id"+flow
18
19
20