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
FRR Set Weight Support #6033
FRR Set Weight Support #6033
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6033 +/- ##
============================================
+ Coverage 72.26% 72.32% +0.06%
- Complexity 34367 34422 +55
============================================
Files 2810 2816 +6
Lines 140953 141344 +391
Branches 16938 16981 +43
============================================
+ Hits 101856 102225 +369
+ Misses 31144 31096 -48
- Partials 7953 8023 +70 |
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 8 of 8 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @kylehoferamzn)
projects/batfish/src/main/java/org/batfish/representation/cumulus/RouteMapSetWeight.java, line 14 at r1 (raw file):
public class RouteMapSetWeight implements RouteMapSet { private int _weight;
just double checking: This can only be literal integer, or can it be an expression (like metric) where you're allowed to say +5
or -10
, etc.
projects/batfish/src/test/java/org/batfish/grammar/cumulus_frr/CumulusFrrGrammarTest.java, line 1727 at r1 (raw file):
Features tested: 1) Set comm 2) Match comm + set tag + set weight
this is too much stuff in a single test
why can't the advertiser unconditionally send a single route, and the listener unconditionally accept, but set the weight on import?
that way we are testing one thing: weight setting. And since there is only one route being exchanged to additional filtering is needed.
"just double checking: This can only be literal integer, or can it be an expression (like metric) where you're allowed to say +5 or -10, etc." From my experience with the CLI you can only set a literal integer and doesn't allow any increment or expressions. (And now I know why you guys had IntExpr on Metric!) "this is too much stuff in a single test" As discussed, will rename this test and create a new, specific test. |
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: complete! all files reviewed, all discussions resolved
No description provided.