diff options
author | Marco Platania <platania@research.att.com> | 2017-05-23 10:29:17 -0400 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2017-05-23 10:29:17 -0400 |
commit | f975a02616cc81003667cdcba5ce59cf02dab248 (patch) | |
tree | 86b7a2fb56bd68e92b6577c67073728e364ff856 | |
parent | 03a12a547512908cd80e582b6050dfbcc99a4f7b (diff) |
Change MTU size to private NICs
Change-Id: I6cfdd2d23dd36b9063dbc98ac0c164db0dcef787
Signed-off-by: Marco Platania <platania@research.att.com>
-rw-r--r-- | boot/aai_install.sh | 4 | ||||
-rw-r--r-- | boot/appc_install.sh | 4 | ||||
-rw-r--r-- | boot/asdc_install.sh | 4 | ||||
-rw-r--r-- | boot/dcae_install.sh | 5 | ||||
-rw-r--r-- | boot/mr_install.sh | 4 | ||||
-rw-r--r-- | boot/mso_install.sh | 4 | ||||
-rw-r--r-- | boot/policy_install.sh | 4 | ||||
-rw-r--r-- | boot/portal_install.sh | 4 | ||||
-rw-r--r-- | boot/robot_install.sh | 4 | ||||
-rw-r--r-- | boot/sdnc_install.sh | 4 | ||||
-rw-r--r-- | boot/vid_install.sh | 4 |
11 files changed, 23 insertions, 22 deletions
diff --git a/boot/aai_install.sh b/boot/aai_install.sh index dcb7119e..e02d9d78 100644 --- a/boot/aai_install.sh +++ b/boot/aai_install.sh @@ -5,6 +5,7 @@ NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -40,6 +41,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -67,8 +69,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/appc_install.sh b/boot/appc_install.sh index a1e38393..769f33c8 100644 --- a/boot/appc_install.sh +++ b/boot/appc_install.sh @@ -6,6 +6,7 @@ ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -41,6 +42,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -68,8 +70,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/asdc_install.sh b/boot/asdc_install.sh index 99b2a39c..a7baae76 100644 --- a/boot/asdc_install.sh +++ b/boot/asdc_install.sh @@ -6,6 +6,7 @@ ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -41,6 +42,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -85,8 +87,6 @@ mount /dev/$DISK"1" /data echo "/dev/"$DISK"1 /data ext4 errors=remount-ro,noatime,barrier=0 0 1" >> /etc/fstab # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/dcae_install.sh b/boot/dcae_install.sh index ee818e19..dadbbd8a 100644 --- a/boot/dcae_install.sh +++ b/boot/dcae_install.sh @@ -38,6 +38,8 @@ DCAE_HDP1_IP_ADDR=$(cat /opt/config/dcae_hdp1_ip_addr.txt) DCAE_HDP2_IP_ADDR=$(cat /opt/config/dcae_hdp2_ip_addr.txt) DCAE_HDP3_IP_ADDR=$(cat /opt/config/dcae_hdp3_ip_addr.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) + if [[ $CLOUD_ENV != "rackspace" ]] then # Add host name to /etc/host to avoid warnings in openstack images @@ -71,6 +73,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $DCAE_IP_ADDR" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -98,8 +101,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/mr_install.sh b/boot/mr_install.sh index 61c94729..197ea0c1 100644 --- a/boot/mr_install.sh +++ b/boot/mr_install.sh @@ -6,6 +6,7 @@ ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -41,6 +42,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -68,8 +70,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/mso_install.sh b/boot/mso_install.sh index fe7a9149..45bb712b 100644 --- a/boot/mso_install.sh +++ b/boot/mso_install.sh @@ -7,6 +7,7 @@ DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) OPENSTACK_API_KEY=$(cat /opt/config/openstack_api_key.txt) GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -42,6 +43,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -69,8 +71,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/policy_install.sh b/boot/policy_install.sh index eeb319f4..1af75025 100644 --- a/boot/policy_install.sh +++ b/boot/policy_install.sh @@ -6,6 +6,7 @@ ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -41,6 +42,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -68,8 +70,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/portal_install.sh b/boot/portal_install.sh index 95f0bb21..9b868d35 100644 --- a/boot/portal_install.sh +++ b/boot/portal_install.sh @@ -6,6 +6,7 @@ ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -41,6 +42,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -68,8 +70,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/robot_install.sh b/boot/robot_install.sh index 0871f692..d623526d 100644 --- a/boot/robot_install.sh +++ b/boot/robot_install.sh @@ -6,6 +6,7 @@ ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -41,6 +42,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -68,8 +70,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/sdnc_install.sh b/boot/sdnc_install.sh index a62aeab9..6e6f95b0 100644 --- a/boot/sdnc_install.sh +++ b/boot/sdnc_install.sh @@ -6,6 +6,7 @@ ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -41,6 +42,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -68,8 +70,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker diff --git a/boot/vid_install.sh b/boot/vid_install.sh index 4fbb6ece..316634a3 100644 --- a/boot/vid_install.sh +++ b/boot/vid_install.sh @@ -6,6 +6,7 @@ ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) CLOUD_ENV=$(cat /opt/config/cloud_env.txt) GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) +MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) # Add host name to /etc/host to avoid warnings in openstack images if [[ $CLOUD_ENV != "rackspace" ]] @@ -41,6 +42,7 @@ then echo "iface eth1 inet static" >> /etc/network/interfaces echo " address $LOCAL_IP" >> /etc/network/interfaces echo " netmask $NETMASK" >> /etc/network/interfaces + echo " mtu $MTU" >> /etc/network/interfaces ifup eth1 fi @@ -68,8 +70,6 @@ curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose chmod +x /opt/docker/docker-compose # Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP -MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) - if [ -s /opt/config/external_dns.txt ] then echo "DOCKER_OPTS=\"--dns $(cat /opt/config/external_dns.txt) --mtu=$MTU\"" >> /etc/default/docker |