mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #1055: Add reboot and reset to self-service
(cherry picked from commit 150db00efffa0c20c5df29d18fa16c92a90b022f)
This commit is contained in:
parent
fb05e8ee86
commit
fa824b00ad
@ -415,6 +415,14 @@ var OCCI = {
|
||||
params.data.body = { state : "STOPPED" };
|
||||
OCCI.Action.update(params,OCCI.VM.resource,"stop");
|
||||
},
|
||||
"reboot": function(params){
|
||||
params.data.body = { state : "REBOOT" };
|
||||
OCCI.Action.update(params,OCCI.VM.resource,"reboot");
|
||||
},
|
||||
"reset": function(params){
|
||||
params.data.body = { state : "RESET" };
|
||||
OCCI.Action.update(params,OCCI.VM.resource,"reset");
|
||||
},
|
||||
"cancel": function(params){
|
||||
params.data.body = { state : "CANCEL" };
|
||||
OCCI.Action.update(params,OCCI.VM.resource,"cancel");
|
||||
|
@ -214,6 +214,24 @@ var vm_actions = {
|
||||
notify: true
|
||||
},
|
||||
|
||||
"VM.reboot" : {
|
||||
type: "multiple",
|
||||
call: OCCI.VM.reboot,
|
||||
callback: updateVMachineElement,
|
||||
elements: vmElements,
|
||||
error: onError,
|
||||
notify: true
|
||||
},
|
||||
|
||||
"VM.reset" : {
|
||||
type: "multiple",
|
||||
call: OCCI.VM.reset,
|
||||
callback: updateVMachineElement,
|
||||
elements: vmElements,
|
||||
error: onError,
|
||||
notify: true
|
||||
},
|
||||
|
||||
"VM.cancel" : {
|
||||
type: "multiple",
|
||||
call: OCCI.VM.cancel,
|
||||
@ -336,6 +354,16 @@ var vm_buttons = {
|
||||
text: tr("Stop"),
|
||||
tip: "This will stop selected VMs"
|
||||
},
|
||||
"VM.reboot" : {
|
||||
type: "confirm",
|
||||
text: tr("Reboot"),
|
||||
tip: "This will reboot [via acpi] selected VMs"
|
||||
},
|
||||
"VM.reset" : {
|
||||
type: "confirm",
|
||||
text: tr("Reset"),
|
||||
tip: "This will perform a hard reset on selected VMs"
|
||||
},
|
||||
"VM.cancel" : {
|
||||
type: "confirm",
|
||||
text: tr("Cancel"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user