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: Adding max-metric router-lsa administrative support #6577
Conversation
3a5e950
to
e8a97fb
Compare
Codecov Report
@@ Coverage Diff @@
## master #6577 +/- ##
==========================================
Coverage 73.39% 73.39%
- Complexity 35719 35757 +38
==========================================
Files 2837 2838 +1
Lines 144177 144334 +157
Branches 17431 17466 +35
==========================================
+ Hits 105819 105938 +119
- Misses 29972 29987 +15
- Partials 8386 8409 +23 |
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 7 of 7 files at r1.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @kylehoferamzn)
projects/batfish/src/main/antlr4/org/batfish/grammar/cumulus_frr/CumulusFrr_ospf.g4, line 18 at r1 (raw file):
ro_max_metric_router_lsa_administrative
move up to alphabetize?
projects/batfish/src/main/antlr4/org/batfish/grammar/cumulus_frr/CumulusFrrLexer.g4, line 741 at r1 (raw file):
Quoted 4 lines of code…
ROUTER_LSA : 'router-lsa' ;
move down 1 to alphabetize?
projects/batfish/src/main/java/org/batfish/grammar/cumulus_frr/CumulusFrrConfigurationBuilder.java, line 692 at r1 (raw file):
_max_metric_router_lsa_administ
move up to alphabetize?
projects/batfish/src/main/java/org/batfish/representation/cumulus/OspfProcess.java, line 21 at r1 (raw file):
private Map<CumulusRoutingProtocol, RedistributionPolicy> _redistributionPolicies; private boolean _maxMetricRouterLsa;
normally we make these @Nullable Boolean
so we can distinguish between whether they've been configured (to true or false).
Then we can enforce the default explicitly during conversion rather than implicitly during class construction.
Using boolean value = firstNonNull(o.getNullableBoolean(), Boolean.FALSE)
.
e8a97fb
to
6e71925
Compare
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.
Updated per comments
Reviewable status: 2 of 7 files reviewed, all discussions resolved (waiting on @dhalperi)
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 5 of 5 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
6e71925
to
49c2b01
Compare
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
Nothing special here. Should generally align with FRR documentation and is setup similar to Cisco's implementation.