CLOUDSTACK-4048:[GSLB] Failed to assign more than one LB rule to a GSLB rule that is

created with gslbmethod=leastconn

Netscaler nitro api to add gslb virtual servers fails for some reason if
both netmask and round robin methods are specified. So working around
with settign netmask to be null while updating vserver.
This commit is contained in:
Murali Reddy 2013-08-05 19:31:29 +05:30
parent 7b5f4bd99c
commit ea5be13761

View File

@ -1134,10 +1134,9 @@ public class NetscalerResource implements ServerResource {
vserver.set_cookietimeout(null);
vserver.set_domainname(null);
if (isUpdateSite) {
if ("roundrobin".equalsIgnoreCase(lbMethod)) {
// both netmask and LB method can not be specified while update so set to null
vserver.set_netmask(null);
vserver.set_v6netmasklen(null);
}
gslbvserver.update(client, vserver);
} else {
gslbvserver.add(client, vserver);