-
Notifications
You must be signed in to change notification settings - Fork 229
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
Fix OSPF session semantics for interfaces with multiple addresses #5021
Fix OSPF session semantics for interfaces with multiple addresses #5021
Conversation
arifogel
commented
Oct 16, 2019
- Key OSPF sessions additionally on ConcreteInterfaceAddress
- Check compatibility of addresses
- Consider all addresses instead of just primary
- Key OSPF sessions additionally on ConcreteInterfaceAddress - Check compatibility of addresses - Consider all addresses instead of just primary
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 15 of 15 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @arifogel)
projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/ospf/OspfTopologyUtils.java, line 154 at r1 (raw file):
.forEach( (neighborId, neighbor) -> { if (neighbor.isPassive()) {
nit: I'd probably factor this out
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: 15 of 17 files reviewed, 1 unresolved discussion (waiting on @progwriter)
projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/ospf/OspfTopologyUtils.java, line 154 at r1 (raw file):
Previously, progwriter (Victor Heorhiadi) wrote…
nit: I'd probably factor this out
Factor what out? I don't see anything in the loop that can happen outside.
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: 14 of 17 files reviewed, all discussions resolved (waiting on @progwriter)
projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/ospf/OspfTopologyUtils.java, line 154 at r1 (raw file):
Previously, arifogel (Ari Fogel) wrote…
Factor what out? I don't see anything in the loop that can happen outside.
made loop simpler anyhow. resolving.
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 3 of 3 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
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: complete! all files reviewed, all discussions resolved
projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/ospf/OspfTopologyUtils.java, line 154 at r1 (raw file):
Previously, arifogel (Ari Fogel) wrote…
made loop simpler anyhow. resolving.
I find very nested loops are difficult to test, whereas a static func that takes several params is easier to reason about.
However, not worth blocking at this time, imo.
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
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: complete! all files reviewed, all discussions resolved
projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/ospf/OspfTopologyUtils.java, line 154 at r1 (raw file):
Previously, progwriter (Victor Heorhiadi) wrote…
I find very nested loops are difficult to test, whereas a static func that takes several params is easier to reason about.
However, not worth blocking at this time, imo.
Oh you mean factor out the whole interior into a helper function?
Sure, but later. Not really in scope of this PR.
Codecov Report
@@ Coverage Diff @@
## master #5021 +/- ##
============================================
+ Coverage 76.65% 76.68% +0.02%
- Complexity 30122 30194 +72
============================================
Files 2405 2411 +6
Lines 115971 116201 +230
Branches 13688 13710 +22
============================================
+ Hits 88898 89103 +205
- Misses 20345 20348 +3
- Partials 6728 6750 +22
|