Skip to content

Commit

Permalink
restapi: Use additional fields from template
Browse files Browse the repository at this point in the history
Include cpuPinningPolicy, cpuPinning, parallelMigrations fields when
extracting data from a VM template for creating a VM through REST API.

Fixes #633

Change-Id: I139d3c9c00a005610eebe172272a45b3f37ace27
Signed-off-by: Shmuel Melamud <smelamud@redhat.com>
  • Loading branch information
smelamud committed Sep 14, 2022
1 parent 41851f2 commit 21c721b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ public static VmStatic map(VmTemplate entity, VmStatic template, Version version
staticVm.setMultiQueuesEnabled(entity.isMultiQueuesEnabled());
staticVm.setUseHostCpuFlags(entity.isUseHostCpuFlags());
staticVm.setVirtioScsiMultiQueues(entity.getVirtioScsiMultiQueues());
staticVm.setCpuPinningPolicy(entity.getCpuPinningPolicy());
staticVm.setCpuPinning(entity.getCpuPinning());
staticVm.setParallelMigrations(entity.getParallelMigrations());
return doMapVmBaseHwPartToVmStatic(entity, staticVm, version);
}

Expand Down

0 comments on commit 21c721b

Please sign in to comment.