Skip to content
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

Don't return a failure if we try to delete a qdisc handle that doesn't exist #147

Merged
merged 1 commit into from
Jul 24, 2020

Conversation

Mnkras
Copy link
Contributor

@Mnkras Mnkras commented Jul 23, 2020

Before:

$ tcdel veth1 --all && echo $?
[WARNING] command='/sbin/tc qdisc del dev veth1 root', returncode=2, stderr='Error: Cannot delete qdisc with handle of zero.\n'
[WARNING] no qdisc to delete for the incoming device.
1

After:

$ tcdel veth1 --all && echo $?
[WARNING] command='/sbin/tc qdisc del dev veth1 root', returncode=2, stderr='Error: Cannot delete qdisc with handle of zero.\n'
[WARNING] no qdisc to delete for the incoming device.
0

…t exist

Before:
```
$ tcdel veth1 --all && echo $?
[WARNING] command='/sbin/tc qdisc del dev veth1 root', returncode=2, stderr='Error: Cannot delete qdisc with handle of zero.\n'
[WARNING] no qdisc to delete for the incoming device.
1
```
After:
```
$ tcdel veth1 --all && echo $?
[WARNING] command='/sbin/tc qdisc del dev veth1 root', returncode=2, stderr='Error: Cannot delete qdisc with handle of zero.\n'
[WARNING] no qdisc to delete for the incoming device.
0
```
@thombashi thombashi merged commit ac75073 into thombashi:master Jul 24, 2020
@thombashi
Copy link
Owner

Thank you for your pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants