Make ARP_CMD local
Change-Id: Iaa540f7685197a17f1db4c3351373a6d77a80105
This commit is contained in:
parent
e7d2b56391
commit
17398a3de3
@ -621,14 +621,13 @@ function _move_neutron_addresses_route {
|
|||||||
DEFAULT_ROUTE_GW=$(ip -f $af r | awk "/default.+$from_intf/ { print \$3; exit }")
|
DEFAULT_ROUTE_GW=$(ip -f $af r | awk "/default.+$from_intf/ { print \$3; exit }")
|
||||||
local ADD_OVS_PORT=""
|
local ADD_OVS_PORT=""
|
||||||
local DEL_OVS_PORT=""
|
local DEL_OVS_PORT=""
|
||||||
|
local ARP_CMD=""
|
||||||
|
|
||||||
IP_BRD=$(ip -f $af a s dev $from_intf scope global primary | grep inet | awk '{ print $2, $3, $4; exit }')
|
IP_BRD=$(ip -f $af a s dev $from_intf scope global primary | grep inet | awk '{ print $2, $3, $4; exit }')
|
||||||
|
|
||||||
if [[ "$af" == "inet" ]]; then
|
if [[ "$af" == "inet" ]]; then
|
||||||
IP=$(echo $IP_BRD | awk '{ print $1; exit }' | grep -o -E '(.*)/' | cut -d "/" -f1)
|
IP=$(echo $IP_BRD | awk '{ print $1; exit }' | grep -o -E '(.*)/' | cut -d "/" -f1)
|
||||||
ARP_CMD="arping -A -c 3 -w 4.5 -I $to_intf $IP "
|
ARP_CMD="arping -A -c 3 -w 4.5 -I $to_intf $IP "
|
||||||
else
|
|
||||||
ARP_CMD=""
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DEFAULT_ROUTE_GW" != "" ]; then
|
if [ "$DEFAULT_ROUTE_GW" != "" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user