1. Add count check
2. Refine the code by linq (both export & import)
3. Create new desc rather than using the generic one
4. Add backward compatibility when importing
Signed-off-by: Tim Liu <tim.liu@citrix.com>
* CP-26884: add network-sriov info in OVF file when exporting vm
Signed-off-by: Jisheng Xing <jisheng.xing@citrix.com>
* CP-27199: Block VF assignment to VM according to recommendations
Signed-off-by: Jisheng Xing <jisheng.xing@citrix.com>
* fix some comments
* revert the Messages.resx
prevent them from being serialised alongside the API properties. This will also
be useful for moving the API bindings out of XenModel.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
leftover from the time when the OVF wizards were a XenCenter plugin; the latter
has now been removed).
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
prevent exceptions being thrown when the record is an invalid xml. Minor logging
improvements; improvement to certain rethrown exceptions so we don't disturb the
stack trace. Removed unecessary field initialisation and duplicate iscsi session
disposal.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
removed uninitialised streams which we were taking care to close. Solution-wide
style: use string.IsNullOrEmpty method instead of checking separately for null
and zero length.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
leftover from the time when the OVF wizards were a XenCenter plugin; the latter
was not printing output into the XenCenter.log file, thus causing us to miss info).
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>