mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3148 failed to create private gw with default acl id
This commit is contained in:
parent
95ee2854a8
commit
4f75062648
|
|
@ -1389,7 +1389,7 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
|
|||
if ( aclVO == null) {
|
||||
throw new InvalidParameterValueException("Invalid network acl id passed ");
|
||||
}
|
||||
if (aclVO.getVpcId() != vpcId ) {
|
||||
if ((aclVO.getVpcId() != vpcId) && !(aclId == NetworkACL.DEFAULT_DENY || aclId == NetworkACL.DEFAULT_ALLOW)) {
|
||||
throw new InvalidParameterValueException("Private gateway and network acl are not in the same vpc");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue