diff options
author | Tim Rozet <trozet@redhat.com> | 2016-08-03 19:23:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-03 19:23:14 +0000 |
commit | 2912d5cf3ce7f160a33d0ba1fb681c5cbae33944 (patch) | |
tree | f8beda78de9053794a92e085c3df088f0db4dff2 /lib/parse-functions.sh | |
parent | 80783b3b94f3f1dba94bcb15d43be311e157120e (diff) | |
parent | 0cf5b3770e33ed1168e98d557a6dc212ca57f970 (diff) |
Merge "Adds configuring vpp/hc on all nodes"
Diffstat (limited to 'lib/parse-functions.sh')
-rwxr-xr-x | lib/parse-functions.sh | 14 |
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 |