v2v: ovf: store CPU model for oVirt

If CPU model is available store it in OVF for oVirt. This affects
-o rhev and -o vdsm.

Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
This commit is contained in:
Tomáš Golembiovský
2017-04-13 18:49:33 +02:00
committed by Richard W.M. Jones
parent 684aa26115
commit 31f1fe7bd2

View File

@@ -306,6 +306,12 @@ let rec create_ovf source targets guestcaps inspect
e "DefaultDisplayType" [] [PCData "1"];
] in
(match source.s_cpu_model with
| None -> ()
| Some model ->
push_back content_subnodes (e "CustomCpuName" [] [PCData model])
);
(* Add the <Origin/> element if we can. *)
(match origin_of_source_hypervisor source.s_hypervisor with
| None -> ()