CLOUDSTACK-2346: [GSLB] dedicated vs shared GSLB devices and LB devices

Only one NetScaler device can act as GSLB service provider in a zone for
all the tenants and thier networks, so restrict addign NetScaler device
to be shared use when configure as GSLB service provider.
This commit is contained in:
Murali Reddy 2013-07-15 16:28:40 +05:30
parent f53db88bae
commit 467fa6117e

View File

@ -367,6 +367,11 @@ public class NetscalerElement extends ExternalLoadBalancerDeviceManagerImpl impl
s_logger.debug(msg); s_logger.debug(msg);
throw new InvalidParameterValueException(msg); throw new InvalidParameterValueException(msg);
} }
if (dedicatedUse) {
throw new InvalidParameterValueException("NetScaler provisioned to be GSLB service provider can only be configured for shared usage.");
}
} }
ExternalLoadBalancerDeviceVO lbDeviceVO = addExternalLoadBalancer(cmd.getPhysicalNetworkId(), cmd.getUrl(), ExternalLoadBalancerDeviceVO lbDeviceVO = addExternalLoadBalancer(cmd.getPhysicalNetworkId(), cmd.getUrl(),