mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-2400 updated the error message and replacenetworkacl on private gateway
This commit is contained in:
parent
c94c71b4ce
commit
46f8b6f34a
@ -3777,12 +3777,12 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService {
|
||||
// VALIDATE IP INFO
|
||||
// if end ip is not specified, default it to startIp
|
||||
if (!NetUtils.isValidIp(startIp)) {
|
||||
throw new InvalidParameterValueException("Invalid format for the startIp parameter");
|
||||
throw new InvalidParameterValueException("Invalid format for the ip address parameter");
|
||||
}
|
||||
if (endIp == null) {
|
||||
endIp = startIp;
|
||||
} else if (!NetUtils.isValidIp(endIp)) {
|
||||
throw new InvalidParameterValueException("Invalid format for the endIp parameter");
|
||||
throw new InvalidParameterValueException("Invalid format for the endIp address parameter");
|
||||
}
|
||||
|
||||
String cidr = null;
|
||||
|
||||
@ -176,7 +176,7 @@ public class NetworkACLServiceImpl extends ManagerBase implements NetworkACLServ
|
||||
throw new InvalidParameterValueException("Unable to find specified vpc id");
|
||||
}
|
||||
|
||||
if(aclId != NetworkACL.DEFAULT_DENY || aclId != NetworkACL.DEFAULT_ALLOW) {
|
||||
if(aclId != NetworkACL.DEFAULT_DENY && aclId != NetworkACL.DEFAULT_ALLOW) {
|
||||
Vpc vpc = _vpcMgr.getVpc(acl.getVpcId());
|
||||
if(vpc == null){
|
||||
throw new InvalidParameterValueException("Unable to find Vpc associated with the NetworkACL");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user