mirror of https://github.com/apache/cloudstack.git
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:
parent
cd278cff44
commit
cb6ff00ef6
|
|
@ -1134,10 +1134,9 @@ public class NetscalerResource implements ServerResource {
|
|||
vserver.set_cookietimeout(null);
|
||||
vserver.set_domainname(null);
|
||||
if (isUpdateSite) {
|
||||
if ("roundrobin".equalsIgnoreCase(lbMethod)) {
|
||||
vserver.set_netmask(null);
|
||||
vserver.set_v6netmasklen(null);
|
||||
}
|
||||
// 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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue