diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-03-03 20:16:43 +0100 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-03-04 20:04:05 +0100 |
commit | dea6521c7b21d8fef861ce881f8451367679842e (patch) | |
tree | b14729e50ad28d0c0802c7b83fe8aeea7a20e211 /mcp/scripts/xdf_data.sh.j2 | |
parent | 308ea8aa7e6f29d674de9621d235993636ff037c (diff) |
[deploy.sh] Factor out jump bridge parsing to j2
Change-Id: Ie4d8e70866d533d195a6e80cdfecbdb00a3027ce
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/scripts/xdf_data.sh.j2')
-rw-r--r-- | mcp/scripts/xdf_data.sh.j2 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mcp/scripts/xdf_data.sh.j2 b/mcp/scripts/xdf_data.sh.j2 new file mode 100644 index 000000000..9479f2356 --- /dev/null +++ b/mcp/scripts/xdf_data.sh.j2 @@ -0,0 +1,20 @@ +#!/bin/bash -e +############################################################################## +# Copyright (c) 2018 Mirantis Inc., Enea AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +# +# Data derived from XDF (PDF/IDF/SDF/etc), used as input in deploy.sh +# + +# Determine bridge names based on IDF, where all bridges are now mandatory +{%- set bridges = conf.idf.fuel.jumphost.bridges %} +OPNFV_BRIDGES=( + '{{ bridges.admin or "pxebr" }}' + '{{ bridges.mgmt or "mgmt" }}' + '{{ bridges.private or "internal" }}' + '{{ bridges.public or "public" }}' +) |