bug 13146: Netscaler - Editing the algorithm from "source" to "roundrobin" fails

status 13146: resolved fixed
This commit is contained in:
Murali reddy 2012-02-02 18:05:57 +05:30
parent 44f248b9a5
commit cf75552186

View File

@ -1121,6 +1121,12 @@ public class NetscalerResource implements ServerResource {
vserver.set_servicetype(lbProtocol);
vserver.set_lbmethod(lbMethod);
// netmask can only be set for source IP load balancer algorithm
if (!lbMethod.equalsIgnoreCase("SOURCEIPHASH")) {
vserver.set_netmask(null);
vserver.set_v6netmasklen(null);
}
if ((stickyPolicies != null) && (stickyPolicies.length > 0) && (stickyPolicies[0] != null)){
long timeout = 2;// netscaler default 2 min
String cookieName = null;