mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 02:22:52 +01:00
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
7b5f4bd99c
commit
ea5be13761
@ -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…
x
Reference in New Issue
Block a user