-
Notifications
You must be signed in to change notification settings - Fork 229
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
Cumulus and L1 topology: Canonicalize hostnames to lowercase #4809
Conversation
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 r1.
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.
Reviewed 1 of 1 files at r1, 3 of 3 files at r2.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @corinaminer)
projects/batfish/src/test/java/org/batfish/dataplane/EvpnCumulusTest.java, line 33 at r2 (raw file):
final String leaf1 = "Leaf1"; final String leaf2 = "Leaf2";
why not fix these variables instead?
projects/batfish/src/test/java/org/batfish/dataplane/EvpnType5CumulusTest.java, line 57 at r2 (raw file):
dp.getRibs(); String vrf1 = "vrf1"; final ImmutableList<String> leafs = ImmutableList.of("Leaf1", "Leaf2", "Leaf3", "Leaf4");
why not fix these vars instead?
projects/batfish-common-protocol/src/main/java/org/batfish/common/topology/Layer1Topology.java, line 30 at r2 (raw file):
Layer1Edge
Layer1Edge instead?
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: 1 of 5 files reviewed, all discussions resolved (waiting on @dhalperi)
projects/batfish/src/test/java/org/batfish/dataplane/EvpnCumulusTest.java, line 33 at r2 (raw file):
Previously, dhalperi (Dan Halperin) wrote…
final String leaf1 = "Leaf1"; final String leaf2 = "Leaf2";
why not fix these variables instead?
Didn't realize loading the file would be case insensitive. Done
projects/batfish/src/test/java/org/batfish/dataplane/EvpnType5CumulusTest.java, line 57 at r2 (raw file):
Previously, dhalperi (Dan Halperin) wrote…
why not fix these vars instead?
Done
projects/batfish-common-protocol/src/main/java/org/batfish/common/topology/Layer1Topology.java, line 30 at r2 (raw file):
Previously, dhalperi (Dan Halperin) wrote…
Layer1Edge
Layer1Edge instead?
Layer1Node is the lowest-level owner of L1 hostnames, canonicalized there instead.
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 5 of 5 files at r3.
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: 5 of 6 files reviewed, all discussions resolved
projects/batfish-common-protocol/src/test/java/org/batfish/common/topology/TopologyUtilTest.java, line 1359 at r4 (raw file):
_cb.setConfigurationFormat(ConfigurationFormat.CISCO_IOS); Configuration c1 = _cb.setHostname("c1").build(); Configuration c2 = _cb.setHostname("c2").build();
this is a workaround to avoid using generated hostnames, which contain a capital letter, causing a mismatch between c1.getHostname()
and the hostnames in L1 topology. Should probably stop putting a capital letter in generated hostnames, but that will probably break a bunch more tests, and did not want to overextend this PR.
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 r4.
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: 4 of 7 files reviewed, all discussions resolved (waiting on @dhalperi)
projects/batfish/src/test/java/org/batfish/dataplane/EvpnCumulusTest.java, line 33 at r2 (raw file):
Previously, corinaminer (Corina Miner) wrote…
Didn't realize loading the file would be case insensitive. Done
Looks like buildkite is not case flexible for loading files :/
Codecov Report
@@ Coverage Diff @@
## master #4809 +/- ##
============================================
- Coverage 75.47% 75.47% -0.01%
+ Complexity 28646 28641 -5
============================================
Files 2283 2283
Lines 112552 112552
Branches 13518 13518
============================================
- Hits 84947 84946 -1
+ Misses 21117 21113 -4
- Partials 6488 6493 +5
|
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 3 of 3 files at r5.
Reviewable status: complete! all files reviewed, all discussions resolved
No description provided.