search for: to_qmf

Displaying 2 results from an estimated 2 matches for "to_qmf".

Did you mean: to_qmm
2009 Jul 16
0
[PATCH server] add network QMF apis. (still in progress)
...+ include NetworkService + + def find(id) + svc_show(id) + render(@network) + end + + def list + puts "query for Network class!" + svc_list + @networks.collect { |network| render(network) } + end + + def render(network) + puts "calling to_qmf on #{pool}, #{pool.name}" + obj = to_qmf(network, :propmap => { :proto => nil}) + obj.proto = network.boot_type.label + return obj + end + + end +end diff --git a/src/ovirt-agent/lib/ovirt/controllers/physical_network_impl_controller.rb b/src/ovirt-agent/lib/ovirt/cont...
2009 Jul 23
0
[PATCH server] Add network QMF apis.
...tController + + include NetworkService + + def find(id) + svc_show(id) + render(@network) + end + + def list + puts "query for Network class!" + svc_list + @networks.collect { |network| render(network) } + end + + def render(network) + obj = to_qmf(network, :propmap => { :proto => nil}) + obj['proto'] = network.boot_type.proto + puts "network.type is #{@network.type}" + if @network.type == 'PhysicalNetwork' + obj['impl'] = @agent.encode_id(PhysicalNetworkImplController.schema_class...