Skip to content

Commit cb6ff00

Browse files
committed
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.
1 parent cd278cf commit cb6ff00

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,10 +1134,9 @@ private static void createVirtualServer(nitro_service client, String vserverName
11341134
vserver.set_cookietimeout(null);
11351135
vserver.set_domainname(null);
11361136
if (isUpdateSite) {
1137-
if ("roundrobin".equalsIgnoreCase(lbMethod)) {
1138-
vserver.set_netmask(null);
1139-
vserver.set_v6netmasklen(null);
1140-
}
1137+
// both netmask and LB method can not be specified while update so set to null
1138+
vserver.set_netmask(null);
1139+
vserver.set_v6netmasklen(null);
11411140
gslbvserver.update(client, vserver);
11421141
} else {
11431142
gslbvserver.add(client, vserver);

0 commit comments

Comments
 (0)