-
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
fix spurious circular references in routing policy called policy detection #701
Conversation
Reviewed 14 of 14 files at r1. a discussion (no related file): projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/routing_policy/expr/CallExpr.java, line 43 at r1 (raw file):
is this not a warning? projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/routing_policy/statement/If.java, line 39 at r1 (raw file):
why is Comments from Reviewable |
- add getters and setters for transient Warnings fields - compute ALL rp sources instead of just used ones - remove unnecessary iterator() calls for ImmutableSet builder addAll - add null check for WithEnvironmentExpr _expr sources traversal - add tests
Review status: 6 of 16 files reviewed at latest revision, 3 unresolved discussions. a discussion (no related file): Previously, dhalperi (Dan Halperin) wrote…
Done projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/routing_policy/expr/CallExpr.java, line 43 at r1 (raw file): Previously, dhalperi (Dan Halperin) wrote…
Already handled by projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/routing_policy/statement/If.java, line 39 at r1 (raw file): Previously, dhalperi (Dan Halperin) wrote…
Hmm I might have confused with a different builder that only accepts iterator. Comments from Reviewable |
projects/batfish-common-protocol/src/test/java/org/batfish/datamodel/routing_policy/RoutingPolicyTests.java, line 8 at r2 (raw file):
import the Guava Does Eclipse not have a way to blacklist auto-imports? Comments from Reviewable |
Reviewed 10 of 10 files at r2. projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/Configuration.java, line 289 at r2 (raw file):
Proposing a small optional tweak might make it clearer. Invert this: compute them all, then fill in where they're used. Comments from Reviewable |
Reviewed 1 of 1 files at r3. Comments from Reviewable |
Review status: 14 of 16 files reviewed at latest revision, 2 unresolved discussions. projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/Configuration.java, line 289 at r2 (raw file): Previously, dhalperi (Dan Halperin) wrote…
done projects/batfish-common-protocol/src/test/java/org/batfish/datamodel/routing_policy/RoutingPolicyTests.java, line 8 at r2 (raw file): Previously, dhalperi (Dan Halperin) wrote…
fixed for now, will look into eclipse way later Comments from Reviewable |
Reviewed 2 of 2 files at r4. Comments from Reviewable |
…ction (#701) * fix spurious circular references in routing policy called policy detection * add tests for circular routing policy references - add getters and setters for transient Warnings fields - compute ALL rp sources instead of just used ones - remove unnecessary iterator() calls for ImmutableSet builder addAll - add null check for WithEnvironmentExpr _expr sources traversal - add tests * use correct import * clean up rp source gathering * add missing null check
This change is