CLOUDSTACK-2392: Not allow create pvlan network with ipv6

This commit is contained in:
Sheng Yang 2013-05-13 11:40:40 -07:00
parent 25e992dc8e
commit 065d2561b9
1 changed files with 4 additions and 0 deletions

View File

@ -1019,6 +1019,10 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService {
throw new InvalidParameterValueException("Can only support create Private VLAN network with advance shared network!");
}
if (isolatedPvlan != null && ipv6) {
throw new InvalidParameterValueException("Can only support create Private VLAN network with IPv4!");
}
// Regular user can create Guest Isolated Source Nat enabled network only
if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL
&& (ntwkOff.getTrafficType() != TrafficType.Guest || ntwkOff.getGuestType() != Network.GuestType.Isolated