Commit 8bbf0621 authored by Yonghong Song's avatar Yonghong Song

print out simple_tc success at the end of test

Signed-off-by: default avatarYonghong Song <yhs@plumgrid.com>
parent e2a2c481
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
from bpf import BPF from bpf import BPF
from pyroute2 import IPRoute from pyroute2 import IPRoute
print("Simple program to test pyroute2 IPRoute tc interface")
ipr = IPRoute() ipr = IPRoute()
text = """ text = """
...@@ -28,3 +27,4 @@ try: ...@@ -28,3 +27,4 @@ try:
name=fn.name, parent="1:", action="ok", classid=1) name=fn.name, parent="1:", action="ok", classid=1)
finally: finally:
if "idx" in locals(): ipr.link_remove(idx) if "idx" in locals(): ipr.link_remove(idx)
print("BPF tc functionality - SCHED_CLS: OK")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment