search for: update_vmpool

Displaying 3 results from an estimated 3 matches for "update_vmpool".

2010 Sep 01
1
[PATCH 1/3] Adding the VM Pool migration for vms
...troller < ApplicationController render :layout => false end + def edit_vmpool + svc_modify(params[:id]) + @vm = Vm.find(params[:id]) + @vm_pools = VmResourcePool.find_all_by_parent_id(@vm.vm_resource_pool.parent.id) + render :layout => 'popup' + end + + def update_vmpool + svc_modify(params[:id]) + @vm = Vm.find(params[:id]) + @vm_pool = VmResourcePool.find(params[:vm][:vm_resource_pool_id]) + @vm.update_attribute(:vm_resource_pool, @vm_pool) + render :json => { :object => "vm", :success => true, + :alert =>...
2010 Aug 25
0
[PATCH] Adding the VM Pool migration for vms
...troller < ApplicationController render :layout => false end + def edit_vmpool + svc_modify(params[:id]) + @vm = Vm.find(params[:id]) + @vm_pools = VmResourcePool.find_all_by_parent_id(@vm.vm_resource_pool.parent.id) + render :layout => 'popup' + end + + def update_vmpool + svc_modify(params[:id]) + @vm = Vm.find(params[:id]) + @vm_pool = VmResourcePool.find(params[:vm][:vm_resource_pool_id]) + @vm.update_attribute(:vm_resource_pool, @vm_pool) + render :json => { :object => "vm", :success => true, + :alert =>...
2010 Aug 25
2
[PATCH] Virtio support
...troller.rb +++ b/src/app/controllers/vm_controller.rb @@ -146,6 +146,18 @@ class VmController < ApplicationController render :layout => false end + def edit_vmpool + svc_modify(params[:id]) + @vm = Vm.find(params[:id]) + render :layout => 'popup' + end + + def update_vmpool + svc_modify(params[:id]) + @vm = Vm.find(params[:id]) + # TODO + end + protected def _setup_provisioning_options @provisioning_options = [[Vm::PXE_OPTION_LABEL, Vm::PXE_OPTION_VALUE], @@ -176,7 +188,8 @@ class VmController < ApplicationController @vm.nics.each { |nic...