mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 18:43:26 +01:00
Providing acl id option while creating a tier
This commit is contained in:
parent
f4a7f12185
commit
11a25b3b9a
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user