aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs
diff options
context:
space:
mode:
authorItohan <itohan.ukponmwan@intel.com>2017-10-30 16:59:30 -0700
committerItohan <itohan.ukponmwan@intel.com>2017-10-30 18:19:22 -0700
commitaadaadbe2f6ebd6bdd0281a1127221841b382769 (patch)
tree50db50e63bc3b1240b02c3543c7e3851bb2ec9fe /vnfs
parent70a0ffef1bc07e462da335733ddbdac0fcc2e8a7 (diff)
Fixed bug in vbrg install script here document
Modified script to correctly configure snat rules Change-Id: Ie88f747f05745070cfdab2f35eb78f2f01177436 Issue-ID: INT-63 Signed-off-by: Itohan <itohan.ukponmwan@intel.com>
Diffstat (limited to 'vnfs')
-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