From 2a2d04d8b977d3090f2c57a18c39c770804d97f1 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Thu, 10 Aug 2017 10:27:38 -0500 Subject: Externalize IP_ADDRESS variable Several places were using this variable, therefore it was placed in a common place. Change-Id: I481a62482cd2bb55b4a76623309d0977ddb67fe7 Signed-off-by: Victor Morales --- bootstrap/vagrant-onap/lib/functions | 1 + 1 file changed, 1 insertion(+) (limited to 'bootstrap/vagrant-onap/lib/functions') diff --git a/bootstrap/vagrant-onap/lib/functions b/bootstrap/vagrant-onap/lib/functions index d0a7d9787..9b903d92a 100755 --- a/bootstrap/vagrant-onap/lib/functions +++ b/bootstrap/vagrant-onap/lib/functions @@ -12,6 +12,7 @@ git_src_folder=/opt # export_env_vars() - Export environment variables function export_env_vars { export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' |sort -n | head -1) + export IP_ADDRESS=$(ifconfig eth0 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2) } # configure_dns() - DNS/GW IP address configuration -- cgit