Repository navigation
frr: validate the BGP RIB for FRR 10 and SONiC - #266
Merged
Merged
Conversation
dhalperi
added a commit
that referenced
this pull request
Nov 21, 2026
Tests what FRR advertises to an eBGP peer in each `neighbor X remove-private-AS` mode: bare, `all`, `replace-AS` and `all replace-AS`, on paths of private ASes only and on paths with a public AS, plus `all replace-AS` with `local-as` and removal of the peer's own AS. r3 and r4 are sickbayed for #263, #264 and #265. The BGP RIB comparisons need #266. For batfish/batfish#10460.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #266 +/- ##
==========================================
- Coverage 82.91% 82.33% -0.59%
==========================================
Files 97 97
Lines 4536 4585 +49
==========================================
+ Hits 3761 3775 +14
- Misses 775 810 +35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
dhalperi
enabled auto-merge (squash)
November 21, 2026 23:33
FrrValidator now compares the valid best and multipath IPv4 unicast paths in "show bgp vrf all ipv4 unicast json" with Batfish's BGP RIB: AS path, origin, MED, local preference, weight, next hop, and eBGP or iBGP. The FRR parser reads FRR 10's "path" and "metric" keys as well as the "aspath" and "med" of Cumulus' FRR, and "locPrf". lab_builder now collects that command on FRR nodes; SONiC already did. frr_ospf_max_metric_router_lsa predates that collection; a missing table raises ValidationError, and its sickbay says why. Cumulus labs are unchanged: they collect "show ip bgp vrf all json" and keep CumulusFrrValidator. sonic_ebgp passes on Batfish master and loses its sickbay. For #42.
dhalperi
force-pushed
the
frr-bgp-rib-validation
branch
from
November 21, 2026 23:42
bd59079 to
bf4545f
Compare
dhalperi
disabled auto-merge
November 21, 2026 23:51
dhalperi
enabled auto-merge (squash)
November 21, 2026 23:51
dhalperi
added a commit
that referenced
this pull request
Nov 22, 2026
Tests what FRR advertises to an eBGP peer in each `neighbor X remove-private-AS` mode: bare, `all`, `replace-AS` and `all replace-AS`, on paths of private ASes only and on paths with a public AS, plus `all replace-AS` with `local-as` and removal of the peer's own AS. r3 and r4 are sickbayed for #263, #264 and #265. The BGP RIB comparisons need #266. For batfish/batfish#10460.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FrrValidator now compares the valid best and multipath IPv4 unicast
paths in "show bgp vrf all ipv4 unicast json" with Batfish's BGP RIB:
AS path, origin, MED, local preference, weight, next hop, and eBGP or
iBGP. The FRR parser reads FRR 10's "path" and "metric" keys as well as
the "aspath" and "med" of Cumulus' FRR, and "locPrf". lab_builder now
collects that command on FRR nodes; SONiC already did.
frr_ospf_max_metric_router_lsa predates that collection; a missing
table raises ValidationError, and its sickbay says why.
Cumulus labs are unchanged: they collect "show ip bgp vrf all json" and
keep CumulusFrrValidator. sonic_ebgp passes on Batfish master and loses
its sickbay.
For #42.