Change-Id: Iaa540f7685197a17f1db4c3351373a6d77a80105
Sean M. Collins authored on 2016/05/12 03:24:46... | ... |
@@ -621,14 +621,13 @@ function _move_neutron_addresses_route { |
621 | 621 |
DEFAULT_ROUTE_GW=$(ip -f $af r | awk "/default.+$from_intf/ { print \$3; exit }") |
622 | 622 |
local ADD_OVS_PORT="" |
623 | 623 |
local DEL_OVS_PORT="" |
624 |
+ local ARP_CMD="" |
|
624 | 625 |
|
625 | 626 |
IP_BRD=$(ip -f $af a s dev $from_intf scope global primary | grep inet | awk '{ print $2, $3, $4; exit }') |
626 | 627 |
|
627 | 628 |
if [[ "$af" == "inet" ]]; then |
628 | 629 |
IP=$(echo $IP_BRD | awk '{ print $1; exit }' | grep -o -E '(.*)/' | cut -d "/" -f1) |
629 | 630 |
ARP_CMD="arping -A -c 3 -w 4.5 -I $to_intf $IP " |
630 |
- else |
|
631 |
- ARP_CMD="" |
|
632 | 631 |
fi |
633 | 632 |
|
634 | 633 |
if [ "$DEFAULT_ROUTE_GW" != "" ]; then |