-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ospfd: fixed disable mpls-te inter-as support #3059
Conversation
Signed-off-by: Dmitrii Turlupov <dturlupov@factor-ts.ru>
ospf_mpls_te_unregister() always returned 0 if OspfMplsTE.inter_as == Off. Need disable OspfMplsTE.inter_as after ospf_mpls_te_unregister() |
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: FAILEDSee below for issues. This is a comment from an EXPERIMENTAL automated CI system. Get source and apply patch from patchwork: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedUbuntu 12.04 deb pkg check: Successful Topology tests on Ubuntu 16.04 amd64: FailedTopology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPOU1604-5372/test Topology Tests failed for Topology tests on Ubuntu 16.04 amd64:
see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-5372/artifact/TOPOU1604/ErrorLog/log_topotests.txt Topology Tests memory analysis: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-5372/artifact/TOPOU1604/MemoryLeaks/CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base |
ospfd/ospf_te.c
Outdated
@@ -2412,6 +2411,7 @@ DEFUN (no_ospf_mpls_te_inter_as, | |||
|
|||
/* Deregister the Callbacks for Inter-AS suport */ | |||
ospf_mpls_te_unregister(); | |||
OspfMplsTE.inter_as = Off; |
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.
I think this makes sense. But maybe we could move these three lines into the if
block above, to avoid calling ospf_mpls_te_unregister()
when the mpls-te inter-as
command is not previously configured.
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.
Renato
You are right. Dimitrii, can you update your patch ?
Olivier says that this is probably insufficient to fix this issue |
@odd22 can you comment on this? Is the fix insufficient? |
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 suggest by Renato, please move the ospf_mpls_te_unregister()
and OspfMplsTE.inter_ass = Off
inside the if
block to avoid call unregister when not necessary.
ospfd/ospf_te.c
Outdated
@@ -2412,6 +2411,7 @@ DEFUN (no_ospf_mpls_te_inter_as, | |||
|
|||
/* Deregister the Callbacks for Inter-AS suport */ | |||
ospf_mpls_te_unregister(); | |||
OspfMplsTE.inter_as = Off; |
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.
Renato
You are right. Dimitrii, can you update your patch ?
Signed-off-by: Dmitrii Turlupov <dturlupov@factor-ts.ru>
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
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-5848/ This is a comment from an EXPERIMENTAL automated CI system. CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base |
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
LGTM. But, before, merging this PR into master, can you fusion your 3 commits ? Use |
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-5849/ This is a comment from an EXPERIMENTAL automated CI system. CLANG Static Analyzer Summary
No Changes in Static Analysis warnings compared to base |
rebase have some problem . i created new pr #3298 |
Signed-off-by: Dmitrii Turlupov dturlupov@factor-ts.ru