]> git.proxmox.com Git - qemu-server.git/commit
restore: check bridge access when actual config is available
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Jun 2023 15:19:43 +0000 (17:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Jun 2023 15:50:50 +0000 (17:50 +0200)
commit951714ea9248634388c3148f6b143e61071acaf6
tree6fd2472389add43f4e2841a42780fe3511127d72
parentd6deb7f6bb437069fd02c6dfb4bf17ccfbacd8a5
restore: check bridge access when actual config is available

This was not only rather inefficient (getting the config from the
archive twice) but also wrong, as we can override options on restore,
so we can do the check only when the backed-up config and override
config got merged.

If this is to late from POV of volume deletion or the like, then the
issue is that those things happen to early, as we can only know what
to do with the actual target config, so destructive actions that
happen before that are wrong by design.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuServer.pm