Add MTU config to vnfsdk init script 13/14113/1
authorMurali <murali.p@huawei.com>
Thu, 21 Sep 2017 06:12:16 +0000 (06:12 +0000)
committerMurali <murali.p@huawei.com>
Thu, 21 Sep 2017 06:12:16 +0000 (06:12 +0000)
MTU configuration has been added to init script and docker compose file

Change-Id: Ic5a364b6315b4a3f3f55b482347139f5c74f991d
Jira:VNFSDK-92
Signed-off-by: Murali <murali.p@huawei.com>
boot/vnfsdk_vm_init.sh

index 1688699..a505668 100755 (executable)
@@ -9,6 +9,7 @@ set -x
 NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt)
 NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
 NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
+export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
 #DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt) --> don't needed at the moment
 
 # Refresh configuration and scripts