From 9ceb9af5e969193e3f39a736126a02131d8b2239 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 16 Oct 2014 18:28:38 +0200 Subject: [PATCH] MT#9287 Bootstrap /etc/ngcp_mgmt_node for usage in ngcpcfg carrier Change-Id: I26564965ad08f5ed02146b2ffb57ae95fd0527a0 --- deployment.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deployment.sh b/deployment.sh index 7ea0da0..92e1d3a 100755 --- a/deployment.sh +++ b/deployment.sh @@ -662,6 +662,12 @@ if "$PRO_EDITION" ; then wget --timeout=30 -O "/tmp/hosts" "${MANAGEMENT_IP}:3000/hostconfig/${TARGET_HOSTNAME}" IP1=$(awk '/sp1/ { print $1 }' /tmp/hosts) || IP1=$DEFAULT_IP1 IP2=$(awk '/sp2/ { print $1 }' /tmp/hosts) || IP2=$DEFAULT_IP2 + + # required for bootstrapping remote origin in ngcpcfg carrier setup + MGMT_NAME=$(awk "/^$MANAGEMENT_IP/ {print \$2}" /tmp/hosts) + echo "$MGMT_NAME" | sed 's/a$// ; s/b$//' > "${TARGET}/etc/ngcp_mgmt_node" + logit "MGMT_NAME = $MGMT_NAME" + wget --timeout=30 -O "/tmp/interfaces" "${MANAGEMENT_IP}:3000/nwconfig/${TARGET_HOSTNAME}" INTERNAL_NETMASK=$(grep "$INTERNAL_DEV inet" -A2 /tmp/interfaces | awk '/netmask/ { print $2 }') \ || INTERNAL_NETMASK=$DEFAULT_INTERNAL_NETMASK