Displaying 6 results from an estimated 6 matches for "vm_hash".
Did you mean:
lm_hash
2009 May 15
1
[PATCH server] provide default uuid and mac if not provided for create.
..., "%02x"*6].join("-") %
- Array.new(16) {|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>]...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
...#39;Ovirt' object"
+ @agent.query_response(context, @ovirt)
+ end
+
+ def implement_method_call(context, name, object_num_low, args)
+ case name
+ when 'create_vm_def'
+ # args is a Qmf::Arguments and is not a real hash even though it implements [], each etc.
+ vm_hash = {}
+ args.each do |key, value|
+ puts "key is #{key}, value is #{args[key]}"
+ vm_hash[key] = value
+ end
+ vm_hash.delete('vm')
+ vm_hash.delete('uuid') if args['uuid'] == ''
+ vm_hash.delete('vnic_mac_addr'...
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
...es/vm_service.rb
index 3d9777c..24c7908 100644
--- a/src/app/services/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...
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...b b/src/app/services/vm_service.rb
index fb58b51..4c29bcf 100644
--- a/src/app/services/vm_service.rb
+++ b/src/app/services/vm_service.rb
@@ -71,7 +71,6 @@ module VmService
# === Required permissions
# [<tt>Privilege::MODIFY</tt>] for the vm's VmResourcePool
def svc_create(vm_hash, start_now)
- # from before_filter
vm_hash[:state] = Vm::STATE_PENDING
@vm = Vm.new(vm_hash)
authorized!(Privilege::MODIFY, at vm.vm_resource_pool)
@@ -106,9 +105,7 @@ module VmService
# === Required permissions
# [<tt>Privilege::MODIFY</tt>] for the Vm's VmR...