-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
network: routing policy rule cleanups #16881
network: routing policy rule cleanups #16881
Conversation
|
CI no like: |
5c98529
to
7e6e160
Compare
|
@keszybz Test is updated. |
|
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nitpick about the log levels, but i guess this is pre-existing
| } else if (streq(a, "invert_rule")) { | ||
| r = parse_boolean(b); | ||
| if (r < 0) { | ||
| log_error_errno(r, "Failed to parse RPDB rule invert_rule, ignoring: %s", b); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be downgraded to warning i guess (and the other cases like this too).
(i.e. if a log message says "ignoring" it's usually a good indication it should be warning, and not error)
| if (STR_IN_SET(a, "from", "to")) { | ||
| if (streq(a, "family")) { | ||
| r = af_from_name(b); | ||
| if (r < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
| continue; | ||
| } | ||
| if (rule->family != AF_UNSPEC && rule->family != r) { | ||
| log_error("RPDB rule family is already specified, ignoring assignment: %s", b); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too, and everywhere else
…ting policy rule This also makes priority= serialized only when its value is non-zero.
7e6e160
to
5c72a6d
Compare
|
@poettering Thank you for the review, and sorry for late response. Now log level is downgraded. Setting the green label. |
|
lgtm, thanks! |
|
Bad semaphore: |
|
bionic-i386 timed out. |
No description provided.