CLOUDSTACK-6747 test to allow all cidrs on other end of vpc, public or

private
This commit is contained in:
Daan Hoogland 2014-06-25 14:59:14 +02:00
parent 867c894d27
commit 018b471ad3
1 changed files with 9 additions and 0 deletions

View File

@ -1175,6 +1175,15 @@ public class NetUtils {
return true;
}
public static boolean isValidCidrList(String cidrList) {
for (String guestCidr : cidrList.split(",")) {
if (!isValidCIDR(guestCidr)) {
return false;
}
}
return true;
}
public static boolean validateGuestCidrList(String guestCidrList) {
for (String guestCidr : guestCidrList.split(",")) {
if (!validateGuestCidr(guestCidr)) {