Skip to content

Commit 84f83bf

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Make ARP_CMD local"
2 parents 7828907 + 17398a3 commit 84f83bf

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)