From 7c79115c2a1b6716f23f73be244bd1840a9e6f82 Mon Sep 17 00:00:00 2001 From: Guillermo Herrero Date: Thu, 11 Jan 2018 13:23:28 +0100 Subject: Add support for different public network netmask - Remove hardcoded /24 mask - Use PDF as source for public network, with reclass params: opnfv_net_public, _mask, _gw, _pool_start, _pool_end JIRA: FUEL-315 Change-Id: Idf3a4ed8f63f58fa90d9c1dcb7751ef3b1c9bd36 Signed-off-by: Guillermo Herrero --- mcp/scripts/lib.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mcp/scripts/lib.sh') diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh index 29c27d9e9..298590309 100644 --- a/mcp/scripts/lib.sh +++ b/mcp/scripts/lib.sh @@ -456,3 +456,10 @@ function wait_for { return 1 ) } + +function get_nova_compute_pillar_data { + local value=$(salt -C 'I@nova:compute and *01*' pillar.get _param:"${1}" --out yaml | cut -d ' ' -f2) + if [ "${value}" != "''" ]; then + echo ${value} + fi +} -- cgit 1.2.3-korg