CLOUDSTACK-3148 failed to create private gw with default acl id

This commit is contained in:
Jayapal 2013-06-24 12:56:27 +05:30
parent 95ee2854a8
commit 4f75062648
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}