-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError exception on tcshow with empty qdisc configuration #57
Comments
@eroullit Unfortunately, I could not reproduce the problem in my environment
However, it is true that an exception is not properly handled when parsing value is empty. |
The published fix works great thanks! / # tcshow --debug --device eth0
[DEBUG] subprocrunner: tc class show dev eth0
[DEBUG] tcconfig: tc class parse result: []
[DEBUG] subprocrunner: tc filter show dev eth0
[DEBUG] tcconfig: tc filter parse result: []
[DEBUG] subprocrunner: tc qdisc show dev eth0
[DEBUG] subprocrunner: tc filter show dev eth0 root
{
"eth0": {
"outgoing": {},
"incoming": {}
}
}
/ # pip freeze | grep tcconfig
tcconfig==0.7.2 |
maybe i'm missing something but the latest version is 0.18.0, |
@ortaltur
However, I would recommend using the latest version ( |
when i'm executing the tcset and tcdel commands in python script (using subprocess.Popen), i get the following error: [ERROR] tcconfig: Cannot find device "ifb6682" [WARNING] subprocrunner: command='/sbin/tc filter add dev ifb6682 protocol ip parent 1a1a: prio 2 u32 match ip dst 0.0.0.0/0 match ip src 0.0.0.0/0 match ip dport 30302 0xffff flowid 1a1a:1', returncode=1, stderr=Cannot find device "ifb6682" p.s: |
@ortaltur And, please use the latest version of |
It can happen that no qdisc is configured for a specific device and I would have expected that an empty JSON dict to be output.
Regards,
The text was updated successfully, but these errors were encountered: