-
Notifications
You must be signed in to change notification settings - Fork 228
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
Cisco ASA redundant interface support #5542
Cisco ASA redundant interface support #5542
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 15 of 15 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @arifogel)
projects/batfish/src/main/java/org/batfish/main/Batfish.java, line 748 at r1 (raw file):
.filter(Objects::nonNull) .mapToDouble(Double::doubleValue) .findFirst()
- Use something more deterministic, like
min()
? - By having 0 here, you're risking division by 0 exceptions in OSPF computation. Is there a better default value? Or just leave it null?
projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/Interface.java, line 1376 at r1 (raw file):
} @JsonProperty(PROP_REDUNDANCY_GROUP_MEMBERS)
Why plumb this through to VI? who will use it? We do not do this for Juniper, for example.
- update new ref - add stupid changed aws topology ref - non-determinism to be fixed later
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: all files reviewed, 2 unresolved discussions (waiting on @progwriter)
projects/batfish/src/main/java/org/batfish/main/Batfish.java, line 748 at r1 (raw file):
Previously, progwriter (Victor Heorhiadi) wrote…
- Use something more deterministic, like
min()
?- By having 0 here, you're risking division by 0 exceptions in OSPF computation. Is there a better default value? Or just leave it null?
- ok
- i'm just copying logic for
computeAggergatedInterfaceBandwidths
above, which results in 0 if there are no live dependencies (usessum()
).
projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/Interface.java, line 1376 at r1 (raw file):
Previously, progwriter (Victor Heorhiadi) wrote…
Why plumb this through to VI? who will use it? We do not do this for Juniper, for example.
awesome, removed
Codecov Report
@@ Coverage Diff @@
## master #5542 +/- ##
============================================
+ Coverage 73.58% 73.6% +0.02%
- Complexity 32448 32491 +43
============================================
Files 2647 2649 +2
Lines 130034 130192 +158
Branches 15543 15550 +7
============================================
+ Hits 95680 95826 +146
- Misses 26773 26781 +8
- Partials 7581 7585 +4
|
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: all files reviewed, 1 unresolved discussion (waiting on @arifogel)
projects/batfish/src/main/java/org/batfish/main/Batfish.java, line 748 at r1 (raw file):
Previously, arifogel (Ari Fogel) wrote…
- ok
- i'm just copying logic for
computeAggergatedInterfaceBandwidths
above, which results in 0 if there are no live dependencies (usessum()
).
Yeah computeAggergatedInterfaceBandwidths
is likely going to have this bug too, but we can fix that separately
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/src/main/java/org/batfish/main/Batfish.java, line 748 at r1 (raw file):
Previously, progwriter (Victor Heorhiadi) wrote…
Yeah
computeAggergatedInterfaceBandwidths
is likely going to have this bug too, but we can fix that separately
punting for now
- set type of juniper reth units as REDUNDANT_CHILD - remove unnecessary datamodel additions from batfish#5542
No description provided.