summaryrefslogtreecommitdiffstats
path: root/vnfs/vLB/scripts/v_lb_init.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-08-15 16:58:44 -0400
committerMarco Platania <platania@research.att.com>2017-08-15 16:58:44 -0400
commit5008a779ccb979e1b7aa9ffa6238272f3471702b (patch)
tree5ad98a065846345ca2bd2d49fbdd6b02cfff774b /vnfs/vLB/scripts/v_lb_init.sh
parent6eb5e72e6cf45445615586a09815fb00ed02c294 (diff)
Fix ARP issues in vLB and vPKTGEN
- Retrieve vLB and vPKTGEN's MAC address in Heat template - Assign those MAC addresses to VPP tap interfaces Change-Id: Ib4e5d4981031328ca8dc54bd7e5b0031c7f41846 Issue-ID: UCA-34 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vLB/scripts/v_lb_init.sh')
-rwxr-xr-xvnfs/vLB/scripts/v_lb_init.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/vnfs/vLB/scripts/v_lb_init.sh b/vnfs/vLB/scripts/v_lb_init.sh
index 3c816c8d..9223e043 100755
--- a/vnfs/vLB/scripts/v_lb_init.sh
+++ b/vnfs/vLB/scripts/v_lb_init.sh
@@ -39,17 +39,9 @@ FAKE_HWADDR1=$(echo -n 00; dd bs=1 count=5 if=/dev/urandom 2>/dev/null | hexdump
FAKE_HWADDR2=$(echo -n 00; dd bs=1 count=5 if=/dev/urandom 2>/dev/null | hexdump -v -e '/1 ":%02X"')
GW=$(route -n | grep "^0.0.0.0" | awk '{print $2}')
PKTGEN_IPADDR=$(cat /opt/config/pktgen_ipaddr.txt)
+PKTGEN_MAC=$(cat /opt/config/pktgen_mac.txt)
VIP=$(cat /opt/config/vip.txt)
-while [ $(ping -c 1 $PKTGEN_IPADDR | grep received | cut -d" " -f4) != 1 ];
-do
- echo "Wait";
- sleep 1;
-done
-
-sleep 3
-PKTGEN_MAC=$(arp -n | grep -w $PKTGEN_IPADDR | tr -s ' ' | cut -d' ' -f3)
-
ifconfig eth3 down
ifconfig eth3 hw ether $FAKE_HWADDR1
ip addr flush dev eth3