diff options
Diffstat (limited to 'vnfs/vLB/scripts/v_lb_init.sh')
-rwxr-xr-x | vnfs/vLB/scripts/v_lb_init.sh | 10 |
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 |