nl-qdisc-delete: Do not attempt to delete default qdiscs
This commit is contained in:
parent
d95a4193f3
commit
738ee7fea1
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@ static void delete_cb(struct nl_object *obj, void *arg)
|
|||
};
|
||||
int err;
|
||||
|
||||
/* Ignore default qdiscs, unable to delete */
|
||||
if (rtnl_tc_get_handle((struct rtnl_tc *) qdisc) == 0)
|
||||
return;
|
||||
|
||||
if (interactive && !nl_cli_confirm(obj, ¶ms, default_yes))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue