Code Review
/
demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix issues with the MTU size in vFW/vLB
[demo.git]
/
vnfs
/
vFW
/
scripts
/
v_packetgen_install.sh
diff --git
a/vnfs/vFW/scripts/v_packetgen_install.sh
b/vnfs/vFW/scripts/v_packetgen_install.sh
index
913b549
..
c3a510d
100644
(file)
--- a/
vnfs/vFW/scripts/v_packetgen_install.sh
+++ b/
vnfs/vFW/scripts/v_packetgen_install.sh
@@
-10,6
+10,11
@@
CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
if [[ $CLOUD_ENV == "openstack" ]]
then
echo 127.0.0.1 $(hostname) >> /etc/hosts
if [[ $CLOUD_ENV == "openstack" ]]
then
echo 127.0.0.1 $(hostname) >> /etc/hosts
+
+ # Allow remote login as root
+ mv /root/.ssh/authorized_keys /root/.ssh/authorized_keys.bk
+ cp /home/ubuntu/.ssh/authorized_keys /root/.ssh
+
MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
VPG_PRIVATE_IP_O=$(cat /opt/config/vpg_private_ip_0.txt)
MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
VPG_PRIVATE_IP_O=$(cat /opt/config/vpg_private_ip_0.txt)