summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-10-31 02:06:33 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-31 02:06:33 +0000
commit25137730b55170e41e0304d5c9580487572f3275 (patch)
tree03d3502b4d83541a64b4b3dd8693c3b7c0e97e3d
parente287862e314ab28c532b9fbc7fcda554430ebec7 (diff)
parentaadaadbe2f6ebd6bdd0281a1127221841b382769 (diff)
Merge "Fixed bug in vbrg install script here document"
-rwxr-xr-xvnfs/vCPE/scripts/v_brgemu_install.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/vnfs/vCPE/scripts/v_brgemu_install.sh b/vnfs/vCPE/scripts/v_brgemu_install.sh
index 64621c0a..94ed76d2 100755
--- a/vnfs/vCPE/scripts/v_brgemu_install.sh
+++ b/vnfs/vCPE/scripts/v_brgemu_install.sh
@@ -199,7 +199,8 @@ EOF
echo $NICS
BRG_BNG_NIC=GigabitEthernet`echo ${NICS} | cut -d " " -f 2` # second interface in list
-
+ echo $BRG_BNG_NIC > /opt/config/brg_nic.txt
+
cat > /etc/vpp/setup.gate << EOF
set int state ${BRG_BNG_NIC} up
set dhcp client intfc ${BRG_BNG_NIC} hostname brg-emulator
@@ -219,13 +220,15 @@ EOF
#!/bin/bash
while :
do
- if [[ ! $(ps -aux | grep [[:alnum:]]*/vpp/startup.conf | wc -l) = 2 ]]; then
+ if [[ ! $(ps -aux | grep [[:alnum:]]*/vpp/startup.conf | wc -l) = 2 ]];
+ then
echo "vpp not running"
else
break
fi
done
+BRG_BNG_NIC=$(cat /opt/config/brg_nic.txt)
sdnc_ip=$(cat /opt/config/sdnc_ip.txt)
vppctl tap connect tap0