add warning banner for cpu pinning VM in migration dialog

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee
2024-10-23 17:01:36 +02:00
committed by Francesco Torchia
parent 4e84b1264e
commit 42c431d278
3 changed files with 12 additions and 2 deletions
@@ -459,6 +459,10 @@ export default class VirtVm extends HarvesterResource {
return null;
}
get isCpuPinning() {
return this.spec?.template?.spec?.domain?.cpu?.dedicatedCpuPlacement === true;
}
get isVMExpectedRunning() {
if (!this?.spec) {
return false;