mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7037 Unable to add new vm/service to existing LB rule of SSL protocol
This commit is contained in:
parent
421d6029db
commit
d64adf5912
|
|
@ -632,7 +632,11 @@ public class NetscalerResource implements ServerResource {
|
|||
newService.set_port(destination.getDestPort());
|
||||
newService.set_servername(nsServerName);
|
||||
newService.set_state("ENABLED");
|
||||
newService.set_servicetype(lbProtocol);
|
||||
if(lbProtocol.equalsIgnoreCase(NetUtils.SSL_PROTO)) {
|
||||
newService.set_servicetype(NetUtils.HTTP_PROTO);
|
||||
} else {
|
||||
newService.set_servicetype(lbProtocol);
|
||||
}
|
||||
|
||||
apiCallResult = com.citrix.netscaler.nitro.resource.config.basic.service.add(_netscalerService, newService);
|
||||
if (apiCallResult.errorcode != 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue