mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6747 test to allow all cidrs on other end of vpc, public or
private
This commit is contained in:
parent
867c894d27
commit
018b471ad3
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue