feat(backup/importDeltaVm): restoreMacAddresses option
This commit is contained in:
parent
45a0ff26c5
commit
d1af9f236c
@ -143,7 +143,7 @@ exports.importDeltaVm = defer(async function importDeltaVm(
|
|||||||
$defer,
|
$defer,
|
||||||
deltaVm,
|
deltaVm,
|
||||||
sr,
|
sr,
|
||||||
{ cancelToken = CancelToken.none, detectBase = true, mapVdisSrs = {} } = {}
|
{ cancelToken = CancelToken.none, detectBase = true, mapVdisSrs = {}, restoreMacAddresses = true } = {}
|
||||||
) {
|
) {
|
||||||
const { version } = deltaVm
|
const { version } = deltaVm
|
||||||
if (compareVersions(version, '1.0.0') < 0) {
|
if (compareVersions(version, '1.0.0') < 0) {
|
||||||
@ -332,7 +332,7 @@ exports.importDeltaVm = defer(async function importDeltaVm(
|
|||||||
VM: vmRef,
|
VM: vmRef,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
MAC: vif.MAC,
|
MAC: restoreMacAddresses ? vif.MAC : undefined,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user