select the correct migration network

This commit is contained in:
Olivier Lambert 2016-01-20 18:12:37 +01:00
parent 9dd2538043
commit d1478ff694

View File

@ -1594,7 +1594,7 @@ export default class Xapi extends XapiBase {
const vifsMap = {}
if (accrossPools || networkId) {
const {$ref: networkRef} = networkId
? this.getObject(networkId)
? hostXapi.getObject(networkId)
: find(host.$PIFs, pif => pif.management).$network
for (const vif of vm.$VIFs) {
vifsMap[vif.$ref] = networkRef