projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2a2c48
)
print out simple_tc success at the end of test
author
Yonghong Song
<yhs@plumgrid.com>
Mon, 10 Aug 2015 18:19:53 +0000
(11:19 -0700)
committer
Yonghong Song
<yhs@plumgrid.com>
Mon, 10 Aug 2015 18:19:53 +0000
(11:19 -0700)
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
examples/simple_tc.py
patch
|
blob
|
history
diff --git
a/examples/simple_tc.py
b/examples/simple_tc.py
index
4f0fe0f
..
f0258e5
100755
(executable)
--- a/
examples/simple_tc.py
+++ b/
examples/simple_tc.py
@@
-5,7
+5,6
@@
from bpf import BPF
from pyroute2 import IPRoute
-print("Simple program to test pyroute2 IPRoute tc interface")
ipr = IPRoute()
text = """
@@
-28,3
+27,4
@@
try:
name=fn.name, parent="1:", action="ok", classid=1)
finally:
if "idx" in locals(): ipr.link_remove(idx)
+print("BPF tc functionality - SCHED_CLS: OK")