From a8c883ba53fd4345f8f22bed72beb99023245a5c Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 13 Jul 2012 13:50:02 -0700 Subject: [PATCH] cloudstack 3.0 UI - VPC - IP Address - PF, LB, EnableStaticNAT dialogbox - tier dropdown - list only tiers that support corresponding service. --- ui/scripts/network.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index a404a67af1b..9a9facc9ad4 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -1271,7 +1271,8 @@ async: false, data: { vpcid: args.context.vpc[0].id, - listAll: true + listAll: true, + supportedservices: 'StaticNat' }, success: function(json) { var networks = json.listnetworksresponse.network; @@ -2110,7 +2111,8 @@ select: function(args) { if('vpc' in args.context) { var data = { - listAll: true + listAll: true, + supportedservices: 'Lb' }; if(args.context.ipAddresses[0].associatednetworkid == null) { $.extend(data, { @@ -2121,7 +2123,7 @@ $.extend(data, { id: args.context.ipAddresses[0].associatednetworkid }); - } //??? + } $.ajax({ url: createURL("listNetworks"), @@ -2496,7 +2498,8 @@ select: function(args) { if('vpc' in args.context) { var data = { - listAll: true + listAll: true, + supportedservices: 'PortForwarding' }; if(args.context.ipAddresses[0].associatednetworkid == null) { $.extend(data, {