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

bgpd: fix distance for aggregate route #7681

Merged
merged 1 commit into from Dec 7, 2020
Merged

Conversation

chiragshah6
Copy link
Member

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

@polychaeta polychaeta added the bgp label Dec 6, 2020
@LabN-CI
Copy link
Collaborator

LabN-CI commented Dec 6, 2020

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/7681 f0e173e
Date 12/06/2020
Start 13:25:58
Finish 14:01:29
Run-Time 35:31
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2020-12-06-13:25:58.txt
Log autoscript-2020-12-06-13:27:04.log.bz2
Memory 497 496 428

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

NetDEF-CI commented Dec 6, 2020

Continuous Integration Result: SUCCESSFUL

Continuous Integration Result: SUCCESSFUL

Congratulations, 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.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-15857/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201206-00-gf0e173e3e-0 (missing) -> 7.6-dev-20201206-00-gf0e173e3e-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201206-00-gf0e173e3e-0 (missing) -> 7.6-dev-20201206-00-gf0e173e3e-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201206-00-gf0e173e3e-0 (missing) -> 7.6-dev-20201206-00-gf0e173e3e-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201206-00-gf0e173e3e-0 (missing) -> 7.6-dev-20201206-00-gf0e173e3e-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201206-00-gf0e173e3e-0 (missing) -> 7.6-dev-20201206-00-gf0e173e3e-0~deb10u1

Copy link
Member

@ton31337 ton31337 left a 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.

bgpd/bgp_route.c Outdated Show resolved Hide resolved
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>
@LabN-CI
Copy link
Collaborator

LabN-CI commented Dec 7, 2020

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/7681 801bb99
Date 12/07/2020
Start 11:35:59
Finish 12:11:23
Run-Time 35:24
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2020-12-07-11:35:59.txt
Log autoscript-2020-12-07-11:37:02.log.bz2
Memory 483 503 426

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, 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.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-15867/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.5.0.3 (current is 4.3.0)
W: frr-pythontools: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201207-02-g801bb996a-0 (missing) -> 7.6-dev-20201207-02-g801bb996a-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201207-02-g801bb996a-0 (missing) -> 7.6-dev-20201207-02-g801bb996a-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201207-02-g801bb996a-0 (missing) -> 7.6-dev-20201207-02-g801bb996a-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201207-02-g801bb996a-0 (missing) -> 7.6-dev-20201207-02-g801bb996a-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 7.5-0 -> 7.6-dev-20201207-02-g801bb996a-0 (missing) -> 7.6-dev-20201207-02-g801bb996a-0~deb10u1

Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

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

looks good

@riw777 riw777 merged commit 6a68410 into FRRouting:master Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants