cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [21/50] git commit: updated refs/heads/master to 3c429ee
Date Tue, 17 Mar 2015 10:26:23 GMT
Show all routers of a VPC
   - For redundant VPCs, we should see 2 routers
   - For single VPCs, we should see 1 router.


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

Branch: refs/heads/master
Commit: 05e4fe17e2a7d47c6b47f3f518859d9c087c06c6
Parents: 9e82281
Author: wilderrodrigues <wrodrigues@schubergphilis.com>
Authored: Thu Feb 5 08:58:08 2015 +0100
Committer: wilderrodrigues <wrodrigues@schubergphilis.com>
Committed: Mon Mar 16 11:39:59 2015 +0100

----------------------------------------------------------------------
 ui/scripts/network.js | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/05e4fe17/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index e7ab5fc..33e85b8 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -5777,12 +5777,14 @@
                                         dataType: "json",
                                         async: true,
                                         success: function(json) {
-                                            var item = json.listroutersresponse.router[0];
+                                            for (var i = 0; i < json.listroutersresponse.router.length;
i++) {
+                                                var item = json.listroutersresponse.router[i];
 
-                                            args.response.success({
-                                                actionFilter: cloudStack.sections.system.routerActionFilter,
-                                                data: item
-                                            });
+                                                args.response.success({
+                                                    actionFilter: cloudStack.sections.system.routerActionFilter,
+                                                    data: item
+                                                });
+                                            }
                                         }
                                     });
                                 }


Mime
View raw message