diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-10-18 22:30:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-10-18 22:30:18 +0000 |
commit | 5fd088a583e235d84e638c30f747d1a3a78cd05d (patch) | |
tree | edaf8ca5309d2e3099eddfb446a91633a8ab2c14 /ci | |
parent | 68ff467c4c2d9d0f201e2912c97616402f8109a3 (diff) | |
parent | c360b972649028d2613fc8561899c2c8b7f71832 (diff) |
Merge "[baremetal] PDF-based network config"
Diffstat (limited to 'ci')
-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=( \ |