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',