Skip to content

Commit 17398a3

Browse files
committed
Make ARP_CMD local
Change-Id: Iaa540f7685197a17f1db4c3351373a6d77a80105
1 parent e7d2b56 commit 17398a3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/neutron-legacy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,14 +621,13 @@ function _move_neutron_addresses_route {
621621
DEFAULT_ROUTE_GW=$(ip -f $af r | awk "/default.+$from_intf/ { print \$3; exit }")
622622
local ADD_OVS_PORT=""
623623
local DEL_OVS_PORT=""
624+
local ARP_CMD=""
624625

625626
IP_BRD=$(ip -f $af a s dev $from_intf scope global primary | grep inet | awk '{ print $2, $3, $4; exit }')
626627

627628
if [[ "$af" == "inet" ]]; then
628629
IP=$(echo $IP_BRD | awk '{ print $1; exit }' | grep -o -E '(.*)/' | cut -d "/" -f1)
629630
ARP_CMD="arping -A -c 3 -w 4.5 -I $to_intf $IP "
630-
else
631-
ARP_CMD=""
632631
fi
633632

634633
if [ "$DEFAULT_ROUTE_GW" != "" ]; then

0 commit comments

Comments
 (0)