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

Add script to block/unblock ICMP traffic on a given ACL table [experimental; do not merge] #1488

Draft
wants to merge 2 commits into
base: 201911
Choose a base branch
from

Conversation

daall
Copy link
Contributor

@daall daall commented Mar 10, 2021

What I did

How I did it

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@daall daall requested a review from qiluo-msft March 10, 2021 18:58
table_ip_version = 6 if table_ip_version == IP_VERSION_V6 else 4
if destination_ip_version != table_ip_version:
error("Cannot use an IPv{} rule with an IPv{} table, exiting...".format(destination_ip_version, table_ip_version))
except Exception as e:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception [](start = 11, length = 9)

Is there a more specific exception type? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per the docs it will be a ValueError, so we can check for that.

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

Successfully merging this pull request may close these issues.

None yet

3 participants