diff options
author | Tim Rozet <trozet@redhat.com> | 2017-08-01 17:20:29 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2017-08-09 02:28:21 +0000 |
commit | 5597f9921bd46f5f0a100e64ed927f7170fe7725 (patch) | |
tree | 2aae35ff17c33a3fb78ecf6d0d89fd43edeb5c89 /lib/undercloud-functions.sh | |
parent | a36df896ab212bc3fc1705d1ead949a5fabcd77e (diff) |
Enables SFC scenarios
apex-tripleo-heat-templates: I230b31dc9ed0ecc5046064628ba2f2505e589522
apex-puppet-tripleo: Icd433ddc6ae7de19a09f9e33b410a362c317138a
Change-Id: I0b17b4e86eb90b949bd62f7e73944adad77ef1a3
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'lib/undercloud-functions.sh')
-rwxr-xr-x | lib/undercloud-functions.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/undercloud-functions.sh b/lib/undercloud-functions.sh index 44bd3903..08e1b7cf 100755 --- a/lib/undercloud-functions.sh +++ b/lib/undercloud-functions.sh @@ -147,7 +147,14 @@ function configure_undercloud { ovs_dpdk_bridge='' fi - if ! controller_nic_template=$(python3 -B $LIB/python/apex_python_utils.py nic-template -r controller -s $NETSETS -t $BASE/nics-template.yaml.jinja2 -e "br-ex" --deploy-settings-file $DEPLOY_SETTINGS_FILE); then + # for some reason putting IP on the bridge fails with pinging validation in OOO + if [ "${deploy_options_array['sfc']}" == 'True' ]; then + controller_external='interface' + else + controller_external='br-ex' + fi + + if ! controller_nic_template=$(python3 -B $LIB/python/apex_python_utils.py nic-template -r controller -s $NETSETS -t $BASE/nics-template.yaml.jinja2 -e $controller_external --deploy-settings-file $DEPLOY_SETTINGS_FILE); then echo -e "${red}ERROR: Failed to generate controller NIC heat template ${reset}" exit 1 fi |