Merge "add osmclient build"
authorMike Marchetti <mmarchetti@sandvine.com>
Wed, 17 May 2017 22:34:16 +0000 (00:34 +0200)
committerGerrit Code Review <root@osm.etsi.org>
Wed, 17 May 2017 22:34:16 +0000 (00:34 +0200)
jenkins/SO/install
jenkins/VCA/start_build

index 357310f..948e8f8 100755 (executable)
@@ -55,7 +55,7 @@ fi
 # Set up repo and version
 
 PLATFORM_REPOSITORY=${1:-OSM}
-PLATFORM_VERSION=${2:-4.4.2.1.60552}
+PLATFORM_VERSION=${2:-4.4.2.1.61839}
 
 ###############################################################################
 # Main block
index 45b0e94..d6ccfd8 100755 (executable)
@@ -56,6 +56,16 @@ EOF
 systemctl enable lxd-bridge
 systemctl start lxd-bridge
 
+DEFAULT_INTERFACE=$(route -n | awk '$1~/^0.0.0.0/ {print $8}')
+DEFAULT_MTU=$( ip addr show $DEFAULT_INTERFACE | perl -ne 'if (/mtu\s(\d+)/) {print $1;}')
+
+INFO "Setting lxdbr0 MTU to $DEFAULT_MTU"
+ifconfig lxdbr0 mtu $DEFAULT_MTU
+
+# Make the MTU change persistent between reboots
+sed -i '/ifconfig lxdbr0 mtu/d' /etc/rc.local
+sed -i "$ i ifconfig lxdbr0 mtu $DEFAULT_MTU" /etc/rc.local
+
 INFO "Pre-caching Ubuntu:16.04 image (this may take several minutes)..."
 
 # Setup a daily cron to update the cached image