Skip to content

Commit 221e429

Browse files
committed
CLOUDSTACK-7915: as a backup use hardcoded LB algorithms in UI
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent ca1e5c1 commit 221e429

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
@@ -3507,7 +3507,22 @@
35073507
label: 'label.algorithm',
35083508
isEditable: true,
35093509
select: function(args) {
3510-
var data = getLBAlgorithms(args.context.networks[0]);
3510+
var data = [{
3511+
id: 'roundrobin',
3512+
name: 'roundrobin',
3513+
description: _l('label.lb.algorithm.roundrobin')
3514+
}, {
3515+
id: 'leastconn',
3516+
name: 'leastconn',
3517+
description: _l('label.lb.algorithm.leastconn')
3518+
}, {
3519+
id: 'source',
3520+
name: 'source',
3521+
description: _l('label.lb.algorithm.source')
3522+
}];
3523+
if (typeof args.context != 'undefined') {
3524+
data = getLBAlgorithms(args.context.networks[0]);
3525+
}
35113526
args.response.success({
35123527
data: data
35133528
});

0 commit comments

Comments
 (0)