CLOUDSTACK-8296 VMs cannot be migrated with XenMotion as network is not available.

(cherry picked from commit 736c7d7668)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Sanjay Tripathi 2015-03-02 11:22:49 +05:30 committed by Rohit Yadav
parent c8e6fbb812
commit 8069b17250
1 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,12 @@ public class XenServer610Resource extends XenServer600Resource {
try {
prepareISO(connection, vmSpec.getName());
// Get the list of networks and recreate VLAN, if required.
for (NicTO nicTo : vmSpec.getNics()) {
getNetwork(connection, nicTo);
}
Map<String, String> other = new HashMap<String, String>();
other.put("live", "true");
Network networkForSm = getNativeNetworkForTraffic(connection, TrafficType.Storage, null).getNetwork();