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
BGP redistribution: set MED to IGP metric #6425
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.
Reviewed 2 of 2 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved
Did not expect this much difference in behavior. Closing pending some closer validation |
In the fullness of time this would be probably be done by routing policy because vendors may have knobs to control this behavior, but for now this is a default that seems to apply to big vendors
A more detailed investigation reveals that the main RIB for the example network is not affected. the BGP ribs are already not-as-correct-as-we-like so the changes reflected in the DP ref test do not make the situation any worse. |
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.
Reviewed 4 of 4 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @progwriter)
projects/batfish/src/test/java/org/batfish/grammar/cisco/CiscoGrammarTest.java, line 3985 at r2 (raw file):
EigrpRoute noMatchEigrp = internalRb.setNetwork(noMatchRm).build(); // TODO BGP metric should match original route's metric
can remove this todo 😍
looks like you already rooted it out in the nxos test.
Codecov Report
@@ Coverage Diff @@
## master #6425 +/- ##
=========================================
Coverage 73.30% 73.30%
+ Complexity 35476 35474 -2
=========================================
Files 2824 2824
Lines 143432 143433 +1
Branches 17325 17325
=========================================
+ Hits 105148 105149 +1
+ Misses 29955 29952 -3
- Partials 8329 8332 +3
|
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.
Reviewable status: 5 of 6 files reviewed, all discussions resolved (waiting on @corinaminer)
projects/batfish/src/test/java/org/batfish/grammar/cisco/CiscoGrammarTest.java, line 3985 at r2 (raw file):
Previously, corinaminer (Corina Miner) wrote…
can remove this todo 😍
looks like you already rooted it out in the nxos test.
to-done.
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.
Reviewed 1 of 1 files at r3.
Reviewable status: complete! all files reviewed, all discussions resolved
In the fullness of time this would be probably be done by routing policy because vendors may have knobs to control this behavior, but for now this is a default that seems to apply to big vendors