bisdn / meta-switch

MIT License
4 stars 2 forks source link

Make switch_tcpdump more robust and user-friendly #192

Closed ideaship closed 2 months ago

ideaship commented 2 months ago

This PR contains a number of changes for switch_tcpdump that should make the script more robust and more user-friendly.

In particular, a custom signal handler increases the chance that we manage to remove the ACL rule correctly even when getting SIGINT or SIGTERM in quick succession. The script can now also deal automatically with an existing ACL rule (e.g., left by a previous switch_tcpdump terminated by SIGKILL) instead of passing on the error message from ofda_acl_flow_cli.py.

The documentation has also been updated and extended.