From 5b790db556d0028a5bec407189befffffcbed80a Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 10 Nov 2011 12:12:12 -0800 Subject: [PATCH] cloudStack 3.0 new UI - NaaS - Public network - populate IP Addresses tab. --- ui/scripts/system.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 4981d4aeb03..a2c1aee49a9 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -155,12 +155,17 @@ } } }, - dataProvider: function(args) { - setTimeout(function() { - args.response.success({ - data: [] - }); - }, 100); + dataProvider: function(args) { + var zoneId = "6e3728bf-0b13-442c-a968-a42015291662"; //temporary until Brian fixes the bug. + //var zoneId = args.context.zones[0].id; + $.ajax({ + url: createURL("listVlanIpRanges&zoneid=" + zoneId), + dataType: "json", + success: function(json) { + var items = json.listvlaniprangesresponse.vlaniprange; + args.response.success({data: items}); + } + }); } }); }