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,
|
||||
deltaVm,
|
||||
sr,
|
||||
{ cancelToken = CancelToken.none, detectBase = true, mapVdisSrs = {} } = {}
|
||||
{ cancelToken = CancelToken.none, detectBase = true, mapVdisSrs = {}, restoreMacAddresses = true } = {}
|
||||
) {
|
||||
const { version } = deltaVm
|
||||
if (compareVersions(version, '1.0.0') < 0) {
|
||||
@ -332,7 +332,7 @@ exports.importDeltaVm = defer(async function importDeltaVm(
|
||||
VM: vmRef,
|
||||
},
|
||||
{
|
||||
MAC: vif.MAC,
|
||||
MAC: restoreMacAddresses ? vif.MAC : undefined,
|
||||
}
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user