Displaying 1 result from an estimated 1 matches for "vmdef_class".
Did you mean:
mdev_class
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
...f our new vm.
+ args['vm'] = @agent.alloc_object_id(vmsvc.vm.id, VmDef::TABLE_ID)
+ @agent.method_response(context, 0, "OK", args)
+ end
+ end
+end
+
+class VmDef
+
+ TABLE_ID = 2
+
+ def initialize(agent, logger)
+
+ @agent = agent
+ @logger = logger
+
+ @vmdef_class = Qmf::SchemaObjectClass.new("org.ovirt.ovirt", "VmDef")
+ @vmdef_class.add_property(Qmf::SchemaProperty.new("description", Qmf::TYPE_LSTR, :desc => "VM description/name."))
+ @vmdef_class.add_property(Qmf::SchemaProperty.new("num_vcpus_allocate...