Show all routers of a VPC

- For redundant VPCs, we should see 2 routers
   - For single VPCs, we should see 1 router.
This commit is contained in:
wilderrodrigues 2015-02-05 08:58:08 +01:00
parent 9e82281cc1
commit 05e4fe17e2
1 changed files with 7 additions and 5 deletions

View File

@ -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
});
}
}
});
}