-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runners: Expose a 'cleanup' action for silent cleanup of an interface
If a network interface is removed before SQM is stopped on that interface, removing the qdisc from that interface will result in errors in the log. Whereas not running the 'stop' action will result in leftover state files (and possibly an IFB interface). While the right thing to do would be to stop SQM before removing the interface, this is not always possible; for instance, pppd doesn't have a 'pre-down' hook. So to accommodate this use case, add a new 'cleanup' action, which just unwinds the firewall rules, removes the IFB interface (but silently in case it does not exist), and deletes the state file. Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
- Loading branch information
Showing
4 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters