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
BGP external announcements: Create a BGP session properties objects for import policy evaluation #7230
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7230 +/- ##
============================================
- Coverage 72.77% 72.76% -0.02%
+ Complexity 38884 38875 -9
============================================
Files 3101 3101
Lines 156794 156808 +14
Branches 18814 18817 +3
============================================
- Hits 114105 114099 -6
- Misses 33671 33679 +8
- Partials 9018 9030 +12
|
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: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @ratulm)
projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/routing_policy/RoutingPolicy.java, line 236 at r1 (raw file):
/** @return True if the policy accepts the route. */ public boolean process(
is there a reason you can't use processBgpRoute
?
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: 0 of 3 files reviewed, 2 unresolved discussions (waiting on @ratulm)
a discussion (no related file):
Need some test from configs and advertisements, to make sure it works.
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: 0 of 3 files reviewed, 2 unresolved discussions (waiting on @dhalperi and @ratulm)
a discussion (no related file):
Previously, dhalperi (Dan Halperin) wrote…
Need some test from configs and advertisements, to make sure it works.
Separate PR: https://github.com/batfish/batfish/pull/7231/files
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 3 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ratulm)
This change helps evaluate routing policy statements that rely on the session object, such as set next hop peer address. The behavior prior to this change was to throw an exception when such statements were encountered.