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
IOS: Convert route-map-based NAT rules #6570
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6570 +/- ##
============================================
- Coverage 73.40% 73.39% -0.01%
- Complexity 35720 35739 +19
============================================
Files 2837 2837
Lines 144171 144244 +73
Branches 17429 17446 +17
============================================
+ Hits 105822 105871 +49
- Misses 29967 29980 +13
- Partials 8382 8393 +11 |
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 6 of 7 files at r1.
Reviewable status: 6 of 7 files reviewed, 1 unresolved discussion (waiting on @corinaminer)
projects/batfish/src/main/java/org/batfish/representation/cisco/CiscoIosNatUtil.java, line 66 at r1 (raw file):
for (RouteMapClause clause : routeMap.getClauses().values()) { if (clause.getAction() != LineAction.PERMIT) { // TODO Support NAT rules referencing route-maps with deny clauses
can we surface these unsupported features somehow? if not in convert warnings, at least with error logs so we devs know when we encounter this?
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 6 of 6 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: 7 of 8 files reviewed, all discussions resolved (waiting on @progwriter)
projects/batfish/src/main/java/org/batfish/representation/cisco/CiscoIosNatUtil.java, line 66 at r1 (raw file):
Previously, progwriter (Victor Heorhiadi) wrote…
can we surface these unsupported features somehow? if not in convert warnings, at least with error logs so we devs know when we encounter this?
yes, surfaced a bunch of warnings that cause NAT rules to be ignored.
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
Same basic idea as ACL-based NAT rules. So far, only limited support for content of route-maps that are used in NAT rules. The rule will be ignored if the route-map has: