sysinv: reduce minimum allowed vswitch cpu count

The vswitch CPU count semantic check is being modified to reduce the
minimum acceptable value from 1 to 0.  This is being done to accommodate
work being done to allow a vswitch to share the set of platform CPUs and
operate in a reduced CPU usage mode rather than require a dedicated set
of CPUs to run.

Story: 2004357
Task: 27957

Change-Id: Ic6d9d4b7f46a37e294c4bdcbb2948a7310956d65
Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
This commit is contained in:
Allain Legacy 2018-10-17 09:13:02 -05:00
parent 6b56b8c3a1
commit aa61a05ecd
3 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="sysinv"
TIS_PATCH_VER=291
TIS_PATCH_VER=292

View File

@ -19,7 +19,7 @@ CORE_FUNCTIONS = [
constants.NO_FUNCTION
]
VSWITCH_MIN_CORES = 1
VSWITCH_MIN_CORES = 0
VSWITCH_MAX_CORES = 8

View File

@ -592,7 +592,7 @@ class PlatformPuppet(base.BasePuppet):
# non-vswitch CPUs = all cores - vswitch cores
non_vswitch_cpus = host_cpu_list
for i in [int(s) for s in vswitch_cpu_list.split(',')]:
for i in [c.cpu for c in vswitch_cpus]:
non_vswitch_cpus.remove(i)
# change the CPU list to ranges