-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
vrrpd: use CS2MS instead of constant 10 everywhere #5181
Conversation
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.
Other than putting it in the debugs as well, LGTM.
vrrpd/vrrp_vty.c
Outdated
@@ -327,7 +327,7 @@ DEFPY(vrrp_default, | |||
"Force VRRP router into administrative shutdown\n") | |||
{ | |||
if (adv) { | |||
if (advint % 10 != 0) { | |||
if (advint % CS2MS != 0) { | |||
vty_out(vty, "%% Value must be a multiple of 10\n"); |
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.
Probably put it here in the string too.
vrrpd/vrrp_vty.c
Outdated
|
||
if (newadvint % 10 != 0) { | ||
if (newadvint % CS2MS != 0) { | ||
vty_out(vty, "%% Value must be a multiple of 10\n"); |
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.
same, in the string
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
lgtm, @ghasemnaddaf can you rebase and make it one commit though, thanks |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-9290/ This is a comment from an automated CI system. |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-9289/ This is a comment from an automated CI system. CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base1 Static Analyzer issues remaining.See details at |
sure I can do that. That would be equivalent to squashing the PR instead of merging it. |
Yes but we don't squash on github because it changes the commit sha and we prefer you to sign off on your own commit shas |
Signed-off-by: Ghasem Naddaf <ghasem.naddaf@gmail.com> vrrpd: use CS2MS instead of constant 10 everywhere Signed-off-by: Ghasem Naddaf <ghasem.naddaf@gmail.com>
44027d8
to
de7fe61
Compare
good point on sign-off. thx. BTW can I be added to the dev slack channel please ? Thanks |
https://frrouting.org/#participate slack invite link is there |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-9298/ This is a comment from an automated CI system. CLANG Static Analyzer Summary
Fixed warnings:
New warnings:
Static Analysis warning summary compared to base:
1 Static Analyzer issues remaining.See details at |
No description provided.