summaryrefslogtreecommitdiffstats
path: root/lib/overcloud-deploy-functions.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-03-30 23:25:49 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-30 23:25:49 +0000
commit28529146f87e5b725616c6574e69697410975f77 (patch)
treece9e397dfbdf9c0e5be683df8e5d2804b7036864 /lib/overcloud-deploy-functions.sh
parent2a1c5597cf4f3c018b5064fded8cdb5637f98e68 (diff)
parent48031aab02254a291a655813d5762a25105a636f (diff)
Merge "Add core pinning settings for VPP"
Diffstat (limited to 'lib/overcloud-deploy-functions.sh')
-rwxr-xr-xlib/overcloud-deploy-functions.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/overcloud-deploy-functions.sh b/lib/overcloud-deploy-functions.sh
index e7abdd03..c6a97f2c 100755
--- a/lib/overcloud-deploy-functions.sh
+++ b/lib/overcloud-deploy-functions.sh
@@ -201,6 +201,22 @@ EOI
if [ -n "${deploy_options_array['performance']}" ]; then
ovs_dpdk_perf_flag="False"
for option in "${performance_options[@]}" ; do
+ if [ "${arr[1]}" == "vpp" ]; then
+ if [ "${arr[0]}" == "Compute" ]; then
+ role='NovaCompute'
+ else
+ role=${arr[0]}
+ fi
+ if [ "${arr[2]}" == "main-core" ]; then
+ ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
+ sed -i "/${role}ExtraConfig:/ c\ ${role}ExtraConfig:\n fdio::vpp_cpu_main_core: \"'${arr[3]}'\"" ${ENV_FILE}
+EOI
+ elif [ "${arr[2]}" == "corelist-workers" ]; then
+ ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
+ sed -i "/${role}ExtraConfig:/ c\ ${role}ExtraConfig:\n fdio::vpp_cpu_corelist_workers: \"'${arr[3]}'\"" ${ENV_FILE}
+EOI
+ fi
+ fi
arr=($option)
# use compute's kernel settings for all nodes for now.
if [ "${arr[0]}" == "Compute" ] && [ "${arr[1]}" == "kernel" ]; then