Merge "sysinv: reduce minimum allowed vswitch cpu count"

This commit is contained in:
Zuul 2018-11-30 00:20:08 +00:00 committed by Gerrit Code Review
commit b7255350a3
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