mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-22 05:24:54 +01:00
CLOUDSTACK-1974: Dedicate Guest VLAN Range - UI - Infrastructure menu - physical network - Guest - Dedicated Guest VLAN Range tab - implement Release Dedicated VLAN Range action.
This commit is contained in:
parent
b247ba6b4f
commit
11a7e46dfb
@ -2199,6 +2199,73 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
//???
|
||||
detailView: {
|
||||
name: 'VLAN Range details',
|
||||
actions: {
|
||||
remove: {
|
||||
label: 'Delete VLAN Range',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
return 'Please confirm you want to delete VLAN Range';
|
||||
},
|
||||
notification: function(args) {
|
||||
return 'Delete VLAN Range';
|
||||
}
|
||||
},
|
||||
action: function(args) {
|
||||
var data = {
|
||||
id: args.context.dedicatedGuestVlanRanges[0].id
|
||||
};
|
||||
$.ajax({
|
||||
url: createURL('releaseDedicatedGuestVlanRange'),
|
||||
data: data,
|
||||
async: true,
|
||||
success: function(json) {
|
||||
var jid = json.releasededicatedguestvlanrangeresponse.jobid;
|
||||
args.response.success(
|
||||
{
|
||||
_custom: { jobId: jid }
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
notification: {
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
tabs: {
|
||||
details: {
|
||||
title: 'label.details',
|
||||
fields: [
|
||||
{
|
||||
guestvlanrange: { label: 'VLAN Range(s)' },
|
||||
},
|
||||
{
|
||||
domain: { label: 'label.domain' },
|
||||
account: { label: 'label.account' },
|
||||
id: { label: 'label.id' }
|
||||
}
|
||||
],
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url: createURL('listDedicatedGuestVlanRanges'),
|
||||
data: {
|
||||
id: args.context.dedicatedGuestVlanRanges[0].id
|
||||
},
|
||||
success: function(json) {
|
||||
var item = json.listdedicatedguestvlanrangesresponse.dedicatedguestvlanrange[0];
|
||||
args.response.success({ data: item })
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user