mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8231: use hardcoded list of LB algorithms as backup
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 6f2facfa39)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
042b99f6bc
commit
7144e9b35d
|
|
@ -1684,7 +1684,22 @@
|
|||
'algorithm': {
|
||||
label: 'label.algorithm',
|
||||
select: function(args) {
|
||||
var data = getLBAlgorithms(args.context.networks[0]);
|
||||
var data = [{
|
||||
id: 'roundrobin',
|
||||
name: 'roundrobin',
|
||||
description: _l('label.lb.algorithm.roundrobin')
|
||||
}, {
|
||||
id: 'leastconn',
|
||||
name: 'leastconn',
|
||||
description: _l('label.lb.algorithm.leastconn')
|
||||
}, {
|
||||
id: 'source',
|
||||
name: 'source',
|
||||
description: _l('label.lb.algorithm.source')
|
||||
}];
|
||||
if (typeof args.context != 'undefined') {
|
||||
data = getLBAlgorithms(args.context.networks[0]);
|
||||
}
|
||||
args.response.success({
|
||||
data: data
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue