Code Review
/
integration
/
test.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7bcf6709de2b61d3369b706786bfde2f8b5c7c3f
[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
12
if __name__ == "__main__":
13
flows = call_dpctl().split("recirc_id")
14
for flow in flows:
15
print(flow)