You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/11/20 07:17:43 UTC
[4/7] git commit: updated refs/heads/4.5 to 2f250e2
CLOUDSTACK-9020: add ipaddress in instances view
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
(cherry picked from commit edc74aebbffc3f8fb4853de3cf6740eee83c78fd)
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1391f476
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1391f476
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1391f476
Branch: refs/heads/4.5
Commit: 1391f476f1db211392b7adf23a58358f10d0aa4a
Parents: 14940a3
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Sat Nov 7 16:50:08 2015 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Sat Nov 7 16:54:13 2015 +0530
----------------------------------------------------------------------
ui/scripts/instances.js | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1391f476/ui/scripts/instances.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index 8c7e31f..68bf098 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -164,6 +164,9 @@
label: 'label.display.name',
truncate: true
},
+ ipaddress: {
+ label: 'label.ip.address'
+ },
zonename: {
label: 'label.zone.name'
},
@@ -371,6 +374,11 @@
data: data,
success: function(json) {
var items = json.listvirtualmachinesresponse.virtualmachine;
+ $.each(items, function(idx, vm) {
+ if (vm.nic && vm.nic.length > 0 && vm.nic[0].ipaddress) {
+ items[idx].ipaddress = vm.nic[0].ipaddress;
+ }
+ });
args.response.success({
data: items
});