From 11a25b3b9a1de955467e3afd5fed52cf2297536e Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Wed, 5 Jun 2013 16:42:31 +0530 Subject: [PATCH] Providing acl id option while creating a tier --- ui/scripts/vpc.js | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index de70d2abe57..bc394807130 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -3155,7 +3155,28 @@ label: 'label.netmask', docID: 'helpTierNetmask', validation: { required: true } - } + }, + + aclid:{ + label:'ACL', + select:function(args){ + $.ajax({ + url: createURL('listNetworkACLLists&vpcid=' +args.context.vpc[0].id), + dataType: 'json', + async: true, + success: function(json) { + var objs = json.listnetworkacllistsresponse.networkacllist; + var items = []; + items.push({id:'',description:''}); + $(objs).each(function() { + + items.push({id: this.id, description: this.name}); + }); + args.response.success({data: items}); + } + }); + } + } }, action: function(args) { @@ -3171,6 +3192,10 @@ netmask: args.data.netmask }; + if(args.data.aclid !='') + $.extend(dataObj, {aclid:args.data.aclid}); + + $.ajax({ url: createURL('createNetwork'), dataType: 'json',