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 IOS: convert VRF leaking config to VI model #6556
Cisco IOS: convert VRF leaking config to VI model #6556
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6556 +/- ##
============================================
+ Coverage 73.36% 73.38% +0.01%
- Complexity 35666 35697 +31
============================================
Files 2837 2837
Lines 143981 144131 +150
Branches 17410 17425 +15
============================================
+ Hits 105632 105768 +136
- Misses 29970 29973 +3
- Partials 8379 8390 +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 8 of 8 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @progwriter)
projects/batfish/src/main/java/org/batfish/representation/cisco/CiscoConfiguration.java, line 2989 at r1 (raw file):
continue; } ip4uaf.inherit(vrf.getGenericAddressFamilyConfig());
was this inheritance just not happening before?
projects/batfish/src/test/java/org/batfish/grammar/cisco/CiscoGrammarTest.java, line 7223 at r1 (raw file):
// Denied by import map assertThat( dstVrfRoutes, not(contains(isBgpv4RouteThat(hasPrefix(Prefix.parse("1.1.1.1/32"))))));
this assertion is redundant with the previous; it's already guaranteed that the 2.2.2.0/24 route is the only one. i'd just put a comment noting that 1.1.1.1/32 is absent because of the import map.
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 @corinaminer)
projects/batfish/src/main/java/org/batfish/representation/cisco/CiscoConfiguration.java, line 2989 at r1 (raw file):
Previously, corinaminer (Corina Miner) wrote…
was this inheritance just not happening before?
correct, this is the first code that makes any use of this portion of the VS model.
projects/batfish/src/test/java/org/batfish/grammar/cisco/CiscoGrammarTest.java, line 7223 at r1 (raw file):
Previously, corinaminer (Corina Miner) wrote…
this assertion is redundant with the previous; it's already guaranteed that the 2.2.2.0/24 route is the only one. i'd just put a comment noting that 1.1.1.1/32 is absent because of the import map.
done
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 r2.
Reviewable status: complete! all files reviewed, all discussions resolved
Convert the VS model to VI VRF leaking config. Resolve import/export route targets to setup VI
VrfLeakingConfig
This required creating a new policy purely for redistribution.
After #6554