-
Notifications
You must be signed in to change notification settings - Fork 233
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
PAN: trace details for security rules #6208
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6208 +/- ##
============================================
+ Coverage 72.90% 72.92% +0.01%
- Complexity 34872 34909 +37
============================================
Files 2826 2826
Lines 142152 142234 +82
Branches 17070 17081 +11
============================================
+ Hits 103639 103720 +81
+ Misses 30313 30298 -15
- Partials 8200 8216 +16 |
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 9 of 9 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @anothermattbrown, @corinaminer, and @sfraint)
projects/batfish/src/main/java/org/batfish/representation/palo_alto/PaloAltoConfiguration.java, line 1060 at r1 (raw file):
// Tracing past NotExpr does not work well, so convert from Not(Or(...)) to // And(Not(...)) to push Not further down in trace ? new AndMatchExpr(negateMatchIps(dstExprs), matchDestinationAddressTraceElement())
What does the final trace look like here?
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 (waiting on @anothermattbrown and @corinaminer)
projects/batfish/src/main/java/org/batfish/representation/palo_alto/PaloAltoConfiguration.java, line 1060 at r1 (raw file):
Previously, dhalperi (Dan Halperin) wrote…
// Tracing past NotExpr does not work well, so convert from Not(Or(...)) to // And(Not(...)) to push Not further down in trace ? new AndMatchExpr(negateMatchIps(dstExprs), matchDestinationAddressTraceElement())
What does the final trace look like here?
OK to handle later.
Add some shallow trace details for Palo Alto security rules. Specifically, adding basic info on first source address, first destination address, and first service matched for a given rule.
Some example traces for cross-zone policies might look like this: