-
Notifications
You must be signed in to change notification settings - Fork 228
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
Including RDS in aws representation #872
Conversation
Looks great. One question: Possible to add an end-to-end test that shows reachability for the RDS instance? Will test the internal plumbing. Reviewed 9 of 9 files at r1. Comments from Reviewable |
Needs some cleanup. I agree with @ratulm that something a bit more end-to-end would may be useful. Reviewed 9 of 9 files at r1. a discussion (no related file): projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 57 at r1 (raw file):
What is the value of projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 100 at r1 (raw file):
Should we be case-sensitive here? This is inconsistent with below. projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 109 at r1 (raw file):
Should we be case-sensitive here? This is inconsistent with above. projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 139 at r1 (raw file):
Why is any of this generation code here? Aren't security groups independent of RDS instances? Why generate these ACLs for everything that uses them? projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 151 at r1 (raw file):
How do you know no one is using this IP? projects/batfish/src/main/java/org/batfish/representation/aws/Region.java, line 248 at r1 (raw file):
What subnet? Isn't there more than one? projects/batfish/src/main/java/org/batfish/representation/aws/Region.java, line 304 at r1 (raw file):
This doesn't provide any more information than the comment in the caller. projects/batfish/src/main/java/org/batfish/representation/aws/Region.java, line 316 at r1 (raw file):
projects/batfish/src/main/java/org/batfish/representation/aws/Region.java, line 318 at r1 (raw file):
projects/batfish/src/test/java/org/batfish/representation/aws/RdsInstanceTest.java, line 33 at r1 (raw file):
For better messages, change to: projects/batfish/src/test/java/org/batfish/representation/aws/RdsInstanceTest.java, line 46 at r1 (raw file):
Please create feature matchers for all of these properties, and use them instead of checking the values of the features directly. Keep the new matchers in the projects/batfish/src/test/java/org/batfish/representation/aws/SubnetTest.java, line 42 at r1 (raw file):
Please create feature matchers for all of these properties, and use them instead of checking the values of the features directly. Keep the new matchers in the Comments from Reviewable |
Review status: 7 of 10 files reviewed at latest revision, 14 unresolved discussions. projects/batfish/src/main/java/org/batfish/representation/aws/Subnet.java, line 50 at r2 (raw file):
Instead of starting at beginning, start at last generated IP. Reduces from O(n^2) to O(n). Comments from Reviewable |
Reviewed 3 of 3 files at r2. Comments from Reviewable |
Reviewed 9 of 9 files at r3. Comments from Reviewable |
Reviewed 3 of 3 files at r4. Comments from Reviewable |
@ratulm, I have added tests in RDSInstanceTest class to test connection of RDS to subnet node and existence of default routes, also to check if IPs allocated to RDS were unique Review status: 15 of 23 files reviewed at latest revision, 12 unresolved discussions. a discussion (no related file): Previously, arifogel (Ari Fogel) wrote…
I think we continued using Jettison for all the aws json configuration deserialization, opened ticket #875 for this projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 57 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
it will be Status.UNAVAILABLE for all other values as there were lots of possible states so I tried encompassing all of them with this. projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 100 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
done projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 109 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
done projects/batfish/src/main/java/org/batfish/representation/aws/Region.java, line 248 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
done projects/batfish/src/main/java/org/batfish/representation/aws/Region.java, line 304 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
removed projects/batfish/src/main/java/org/batfish/representation/aws/Region.java, line 316 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
done projects/batfish/src/main/java/org/batfish/representation/aws/Region.java, line 318 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
done projects/batfish/src/main/java/org/batfish/representation/aws/Subnet.java, line 50 at r2 (raw file): Previously, arifogel (Ari Fogel) wrote…
done projects/batfish/src/test/java/org/batfish/representation/aws/RdsInstanceTest.java, line 33 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
done projects/batfish/src/test/java/org/batfish/representation/aws/RdsInstanceTest.java, line 46 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
done projects/batfish/src/test/java/org/batfish/representation/aws/SubnetTest.java, line 42 at r1 (raw file): Previously, arifogel (Ari Fogel) wrote…
done Comments from Reviewable |
Looking much better. Still a couple concerns. Reviewed 8 of 8 files at r5. projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 57 at r1 (raw file): Previously, haverma (Harsh Verma) wrote…
Looks like it will be projects/batfish/src/test/java/org/batfish/representation/aws/RdsInstanceTest.java, line 132 at r5 (raw file):
This test is a little confusing.
projects/batfish/src/test/java/org/batfish/representation/aws/RdsInstanceTest.java, line 139 at r5 (raw file):
What a strange Comments from Reviewable |
Done some changes Review status: 22 of 23 files reviewed at latest revision, 3 unresolved discussions. projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 57 at r1 (raw file):
projects/batfish/src/test/java/org/batfish/representation/aws/RdsInstanceTest.java, line 132 at r5 (raw file): Previously, arifogel (Ari Fogel) wrote…
replaced with suggested snippet projects/batfish/src/test/java/org/batfish/representation/aws/RdsInstanceTest.java, line 139 at r5 (raw file): Previously, arifogel (Ari Fogel) wrote…
It is the first Ip in the subnet as is being returned by computeInstanceIfaceIp() function of Subnet.java, that is why Subnet::nextIp was starting from the second Ip in the subnet(now it starts from lastGeneratedIp+1) Comments from Reviewable |
Reviewed 1 of 1 files at r6. projects/batfish/src/main/java/org/batfish/representation/aws/RdsInstance.java, line 57 at r1 (raw file): Previously, haverma (Harsh Verma) wrote…
OK, my mistake. That's not the pattern in the rest of the project, but it is the pattern in this package . projects/batfish/src/test/java/org/batfish/representation/aws/RdsInstanceTest.java, line 139 at r5 (raw file): Previously, haverma (Harsh Verma) wrote…
Misread the json file. Looks good. Comments from Reviewable |
Includes:
1)changes for RDS instance
2)changes for allocation of unique Ips from subnet CIDR
This change is