cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: updated refs/heads/4.5 to 6f2facf
Date Fri, 27 Mar 2015 03:59:20 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.5 0fe4acf52 -> 6f2facfa3


CLOUDSTACK-8231: use hardcoded list of LB algorithms as backup

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6f2facfa
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6f2facfa
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6f2facfa

Branch: refs/heads/4.5
Commit: 6f2facfa3900f064e19cee34add2895862ef0556
Parents: 0fe4acf
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Fri Mar 27 09:28:16 2015 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Fri Mar 27 09:28:16 2015 +0530

----------------------------------------------------------------------
 ui/scripts/network.js | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6f2facfa/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 533f1c5..4366943 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -1678,7 +1678,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
                                                     });


Mime
View raw message