feat(Xapi#exportDeltaVm): inject network/SR UUIDs in VIF/VDI records
This commit is contained in:
parent
b697be2383
commit
7d4f006c25
15
src/xapi.js
15
src/xapi.js
@ -1340,20 +1340,27 @@ export default class Xapi extends XapiBase {
|
|||||||
other_config: {
|
other_config: {
|
||||||
...vdi.other_config,
|
...vdi.other_config,
|
||||||
[TAG_BASE_DELTA]: baseVdi.uuid
|
[TAG_BASE_DELTA]: baseVdi.uuid
|
||||||
}
|
},
|
||||||
|
$SR$uuid: vdi.$SR.uuid
|
||||||
|
}
|
||||||
|
: {
|
||||||
|
...vdi,
|
||||||
|
$SR$uuid: vdi.$SR.uuid
|
||||||
}
|
}
|
||||||
: vdi
|
|
||||||
const stream = streams[`${vdiId}.vhd`] = this._exportVdi(vdi, baseVdi, VDI_FORMAT_VHD)
|
const stream = streams[`${vdiId}.vhd`] = this._exportVdi(vdi, baseVdi, VDI_FORMAT_VHD)
|
||||||
$onFailure(() => stream.cancel())
|
$onFailure(() => stream.cancel())
|
||||||
})
|
})
|
||||||
|
|
||||||
const vifs = {}
|
const vifs = {}
|
||||||
forEach(vm.$VIFs, vif => {
|
forEach(vm.$VIFs, vif => {
|
||||||
vifs[vif.$ref] = vif
|
vifs[vif.$ref] = {
|
||||||
|
...vif,
|
||||||
|
$network$uuid: vif.$network.uuid
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return Object.defineProperty({
|
return Object.defineProperty({
|
||||||
version: '1.0.0',
|
version: '1.1.0',
|
||||||
vbds,
|
vbds,
|
||||||
vdis,
|
vdis,
|
||||||
vifs,
|
vifs,
|
||||||
|
Loading…
Reference in New Issue
Block a user