CA-108234: Prevent VM migration onto a host with lower platform version
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
Making the check for both types of migrations
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
CA-101777: Relax the checking of mac seed confliction

The confliction between VM mac seeds has been overly restricted, in particular on VM <-> snapshot confliction.  E.g. importing a VM onto a host with its own snapshot leftover is forbidden for no good reason. This changeset trys to relax the checking a little bit.

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-101777: Enable dry-run feature for vm-import

which should at least work for metadata only import.

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-101777: Let xe-restore-metadata make use of vm-import's dry-run facility

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-101777: Add a force flag to xe-restore-metadata (default to false)

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-101777: add some comments on the compatability checking logic

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>