Skip to content

Commit 6f2facf

Browse files
committed
CLOUDSTACK-8231: use hardcoded list of LB algorithms as backup
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 0fe4acf commit 6f2facf

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

‎ui/scripts/network.js‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,22 @@
16781678
'algorithm': {
16791679
label: 'label.algorithm',
16801680
select: function(args) {
1681-
var data = getLBAlgorithms(args.context.networks[0]);
1681+
var data = [{
1682+
id: 'roundrobin',
1683+
name: 'roundrobin',
1684+
description: _l('label.lb.algorithm.roundrobin')
1685+
}, {
1686+
id: 'leastconn',
1687+
name: 'leastconn',
1688+
description: _l('label.lb.algorithm.leastconn')
1689+
}, {
1690+
id: 'source',
1691+
name: 'source',
1692+
description: _l('label.lb.algorithm.source')
1693+
}];
1694+
if (typeof args.context != 'undefined') {
1695+
data = getLBAlgorithms(args.context.networks[0]);
1696+
}
16821697
args.response.success({
16831698
data: data
16841699
});

0 commit comments

Comments
 (0)