Skip to content

Commit ce69bd7

Browse files
committed
CLOUDSTACK-6747 test to allow all cidrs on other end of vpc, public or
private (cherry picked from commit 018b471)
1 parent 3cdcf77 commit ce69bd7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎utils/src/com/cloud/utils/net/NetUtils.java‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,15 @@ public static boolean isValidS2SVpnPolicy(String policys) {
11751175
return true;
11761176
}
11771177

1178+
public static boolean isValidCidrList(String cidrList) {
1179+
for (String guestCidr : cidrList.split(",")) {
1180+
if (!isValidCIDR(guestCidr)) {
1181+
return false;
1182+
}
1183+
}
1184+
return true;
1185+
}
1186+
11781187
public static boolean validateGuestCidrList(String guestCidrList) {
11791188
for (String guestCidr : guestCidrList.split(",")) {
11801189
if (!validateGuestCidr(guestCidr)) {

0 commit comments

Comments
 (0)