From 0cf5b3770e33ed1168e98d557a6dc212ca57f970 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Thu, 21 Jul 2016 23:00:21 -0400 Subject: Adds configuring vpp/hc on all nodes Changes include: - starting vpp with pci addr of tenant nic - setting performance options for fdio scenario - creates nosdn fdio scenario (needs newtorking-vpp, etc) - starts HC if ODL is used opnfv-tht-pr: 46 JIRA: APEX-133 Change-Id: Ie7a7f1418b94dfb82255ec9aebc550a955dd696a Signed-off-by: Tim Rozet --- lib/parse-functions.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lib/parse-functions.sh') 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 -- cgit 1.2.3-korg