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
bgpd: fix distance for aggregate route #7681
Conversation
Outdated results 💚Basic BGPD CI results: SUCCESS, 0 tests failed
For details, please contact louberger |
Continuous Integration Result: SUCCESSFULContinuous 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-15857/ This is a comment from an automated CI system. Warnings Generated during build:Debian 10 amd64 build: Successful with additional warningsDebian Package lintian failed for Debian 10 amd64 build:
|
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.
Overall LGTM, just one non-blocking nit.
bgp aggregate address installs route with self peer which can have peer->su of unspecifed type. bgp_distance_apply bailed out as it fails to parse sockunion2hostprefix for af type unspec. config: address-family ipv4 unicast aggregate-address 50.1.0.0/16 summary-only Testing Done: Before: B>* 50.1.0.0/16 [20/0] unreachable (blackhole), weight 1, 00:00:02 After: B>* 50.1.0.0/16 [200/0] unreachable (blackhole), weight 1, 00:01:28 Signed-off-by: Chirag Shah <chirag@nvidia.com>
💚 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-15867/ This is a comment from an automated CI system. Warnings Generated during build:Debian 10 amd64 build: Successful with additional warningsDebian Package lintian failed for Debian 10 amd64 build:
|
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.
looks good
bgp aggregate address routes are installed with incorrect distance value.
the aggregate route is installed via self peer which can have peer->su of unspecified type.
bgp_distance_apply bails out as it fails to parse sockunion2hostprefix for af type unspec.
config:
address-family ipv4 unicast
aggregate-address 50.1.0.0/16 summary-only
Testing Done:
Before distance is 20:
B>* 50.1.0.0/16 [20/0] unreachable (blackhole), weight 1, 00:00:02
After: (displayed 200 )
B>* 50.1.0.0/16 [200/0] unreachable (blackhole), weight 1, 00:01:28
Signed-off-by: Chirag Shah chirag@nvidia.com