From 9a1267e79c232b949f666cc130ebb9837f594090 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Wed, 1 Nov 2017 15:31:08 -0400 Subject: Updates to tunnelxconn assignment Update tunnelxconn assignment logic to assign IP address and VNI from local inventory Change-Id: I1aae9162d1eb7a61d641b620488d52abdfe32357 Issue-ID: SDNC-160 Signed-off-by: Dan Timoney Former-commit-id: a7e7279c379e470c1cf7446099fbc11b66fd2ac8 --- .../sdnc/src/main/scripts/addIpAddresses.sh | 33 ++++++++++++++++++++++ installation/sdnc/src/main/scripts/addVnis.sh | 31 ++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100755 installation/sdnc/src/main/scripts/addIpAddresses.sh create mode 100755 installation/sdnc/src/main/scripts/addVnis.sh (limited to 'installation') diff --git a/installation/sdnc/src/main/scripts/addIpAddresses.sh b/installation/sdnc/src/main/scripts/addIpAddresses.sh new file mode 100755 index 00000000..7c088a91 --- /dev/null +++ b/installation/sdnc/src/main/scripts/addIpAddresses.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +MYSQL_USER=${MYSQL_USER:-sdnctl} +MYSQL_PWD=${MYSQL_PWD:-gamma} +MYSQL_DB=${MYSQL_DB:-sdnctl} +MYSQL_HOST=${MYSQL_HOST:-dbhost} + +universe=$1 +subnet=$2 +start=$3 + +if [ $# -eq 3 ] +then + mysql --user=${MYSQL_USER} --password=${MYSQL_PWD} --host=${MYSQL_HOST} ${MYSQL_DB} <