cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [32/50] git commit: updated refs/heads/feature/systemvm-persistent-config to 921f6e2
Date Mon, 16 Feb 2015 16:40: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/718fd890
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/718fd890
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/718fd890

Branch: refs/heads/feature/systemvm-persistent-config
Commit: 718fd890b3953b22a7af47ed15ef411eb16525bd
Parents: 4fe7264
Author: wilderrodrigues <wrodrigues@schubergphilis.com>
Authored: Thu Feb 5 08:58:08 2015 +0100
Committer: wilderrodrigues <wrodrigues@schubergphilis.com>
Committed: Thu Feb 5 08:58:08 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/718fd890/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 5a1d64c..265062e 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