diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-10-19 21:39:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-10-19 21:39:54 +0000 |
commit | 80fa21c1cf4eea0f41438bc0f7509af7ee237dc1 (patch) | |
tree | 17acc285d6571f60f4f4334371627905bbc22d95 /ci/deploy.sh | |
parent | 8cd105aefb88b4a57dd27019ff37bf19cee9c4d9 (diff) | |
parent | f0dbe42bdb6739e30b018f4aff33d2fe75befc5a (diff) |
Merge "[baremetal] PDF-based network config" into stable/euphrates
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-x | ci/deploy.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh index 908909d20..3699bf966 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -345,6 +345,20 @@ for tp in "${RECLASS_CLUSTER_DIR}/all-mcp-ocata-common/opnfv/"*.template \ EOF" 2> /dev/null > "${tp%.template}" done +# Convert Pharos-compatible PDF to reclass network definitions +if [ "${DEPLOY_TYPE}" = 'baremetal' ]; then + find "${RECLASS_CLUSTER_DIR}/${CLUSTER_DOMAIN%.local}" \ + "${RECLASS_CLUSTER_DIR}/${DEPLOY_TYPE}-mcp-ocata-common" \ + -name '*.j2' | while read -r tp + do + if ! "${PHAROS_GEN_CONFIG_SCRIPT}" -y "${LOCAL_PDF}" \ + -j "${tp}" > "${tp%.j2}"; then + notify "[ERROR] Could not convert PDF to reclass network defs!\n" + exit 1 + fi + done +fi + # Map PDF networks 'admin', 'mgmt', 'private' and 'public' to bridge names BR_NAMES=('admin' 'mgmt' 'private' 'public') BR_NETS=( \ |