mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-5431: permit 'http' as service type for GSLB rule
This commit is contained in:
parent
c60a256ebd
commit
bd238ce24e
@ -50,9 +50,11 @@ public interface GlobalLoadBalancerRule extends Identity, InternalIdentity, Cont
|
||||
}
|
||||
|
||||
enum ServiceType {
|
||||
tcp, udp;
|
||||
tcp, udp, http;
|
||||
public static boolean isValidServiceType(String serviceType) {
|
||||
if (tcp.name().equalsIgnoreCase(serviceType) || udp.name().equalsIgnoreCase(serviceType)) {
|
||||
if (tcp.name().equalsIgnoreCase(serviceType) ||
|
||||
udp.name().equalsIgnoreCase(serviceType) ||
|
||||
http.name().equalsIgnoreCase(serviceType)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -87,7 +87,7 @@ public class CreateGlobalLoadBalancerRuleCmd extends BaseAsyncCreateCmd {
|
||||
@Parameter(name = ApiConstants.GSLB_SERVICE_DOMAIN_NAME, type = CommandType.STRING, required = true, description = "domain name for the GSLB service.")
|
||||
private String serviceDomainName;
|
||||
|
||||
@Parameter(name = ApiConstants.GSLB_SERVICE_TYPE, type = CommandType.STRING, required = true, description = "GSLB service type (tcp, udp)")
|
||||
@Parameter(name = ApiConstants.GSLB_SERVICE_TYPE, type = CommandType.STRING, required = true, description = "GSLB service type (tcp, udp, http)")
|
||||
private String serviceType;
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user