Skip to content

Commit c05a007

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 5935384 commit c05a007

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
@@ -1186,6 +1186,15 @@ public static boolean isValidS2SVpnPolicy(String policys) {
11861186
return true;
11871187
}
11881188

1189+
public static boolean isValidCidrList(String cidrList) {
1190+
for (String guestCidr : cidrList.split(",")) {
1191+
if (!isValidCIDR(guestCidr)) {
1192+
return false;
1193+
}
1194+
}
1195+
return true;
1196+
}
1197+
11891198
public static boolean validateGuestCidrList(String guestCidrList) {
11901199
for (String guestCidr : guestCidrList.split(",")) {
11911200
if (!validateGuestCidr(guestCidr)) {

0 commit comments

Comments
 (0)