search for: default_mac_and_uuid

Displaying 4 results from an estimated 4 matches for "default_mac_and_uuid".

2009 May 15
1
[PATCH server] provide default uuid and mac if not provided for create.
...{|x| rand(0xff) } - - @vm = Vm.new({:vm_resource_pool_id => vm_resource_pool_id, - :vnic_mac_addr => mac.collect {|x| "%02x" % x}.join(":"), - :uuid => uuid }) + new_vm_hash = {:vm_resource_pool_id => vm_resource_pool_id} + default_mac_and_uuid(new_vm_hash) + @vm = Vm.new(new_vm_hash) authorized!(Privilege::MODIFY, @vm.vm_resource_pool) end @@ -71,6 +65,7 @@ module VmService # === Required permissions # [<tt>Privilege::MODIFY</tt>] for the vm's VmResourcePool def svc_create(vm_hash, start_now) + de...
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with multiple networks and vice-versa. updated patchset so as to be applicable against current oVirt server HEAD these patches may be applied in any order, they all need to be pushed together
2009 Jul 09
2
permit many-to-many vms / networks relationship
This patchset contains changes to the ovirt server frontend, backend, and tests components, permitting vms to be associated with multiple networks and vice versa. Also included are two patches which are required for the frontend bits; a patch adding collapsable sections to the vm form, which in itself depends on the second patch that provides default values for the cpu and memory vm table fields
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...vices/vm_service.rb +++ b/src/app/services/vm_service.rb @@ -82,8 +82,8 @@ module VmService def svc_new(vm_resource_pool_id) raise ActionError.new("VM Resource Pool is required.") unless vm_resource_pool_id - new_vm_hash = {:vm_resource_pool_id => vm_resource_pool_id} - default_mac_and_uuid(new_vm_hash) + new_vm_hash = {:vm_resource_pool_id => vm_resource_pool_id, + :uuid => Vm::gen_uuid} @vm = Vm.new(new_vm_hash) authorized!(Privilege::MODIFY, @vm.vm_resource_pool) end @@ -94,8 +94,8 @@ module VmService # [<tt>@vm</tt>] the newly...