summaryrefslogtreecommitdiffstats
path: root/lib/parse-functions.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-08-03 19:23:14 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-03 19:23:14 +0000
commit2912d5cf3ce7f160a33d0ba1fb681c5cbae33944 (patch)
treef8beda78de9053794a92e085c3df088f0db4dff2 /lib/parse-functions.sh
parent80783b3b94f3f1dba94bcb15d43be311e157120e (diff)
parent0cf5b3770e33ed1168e98d557a6dc212ca57f970 (diff)
Merge "Adds configuring vpp/hc on all nodes"
Diffstat (limited to 'lib/parse-functions.sh')
-rwxr-xr-xlib/parse-functions.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/parse-functions.sh b/lib/parse-functions.sh
index dde9041a..e8dd982d 100755
--- a/lib/parse-functions.sh
+++ b/lib/parse-functions.sh
@@ -52,8 +52,18 @@ parse_setting_value() {
##parses network settings yaml into globals
parse_network_settings() {
- local output
- if output=$(python3.4 -B $LIB/python/apex_python_utils.py parse-net-settings -s $NETSETS -i $net_isolation_enabled -e $CONFIG/network-environment.yaml); then
+ local output parse_ext
+ parse_ext=''
+
+ for val in ${performance_roles[@]}; do
+ if [ "$val" == "Compute" ]; then
+ parse_ext="${parse_ext} --compute-pre-config "
+ elif [ "$val" == "Controller" ]; then
+ parse_ext="${parse_ext} --controller-pre-config "
+ fi
+ done
+
+ if output=$(python3.4 -B $LIB/python/apex_python_utils.py parse-net-settings -s $NETSETS -i $net_isolation_enabled -e $CONFIG/network-environment.yaml $parse_ext); then
echo -e "${blue}${output}${reset}"
eval "$output"
else