mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 19:14:40 +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',
|
label: 'label.netmask',
|
||||||
docID: 'helpTierNetmask',
|
docID: 'helpTierNetmask',
|
||||||
validation: { required: true }
|
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) {
|
action: function(args) {
|
||||||
@ -3171,6 +3192,10 @@
|
|||||||
netmask: args.data.netmask
|
netmask: args.data.netmask
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if(args.data.aclid !='')
|
||||||
|
$.extend(dataObj, {aclid:args.data.aclid});
|
||||||
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL('createNetwork'),
|
url: createURL('createNetwork'),
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user