Merge "default gateway regex: use exact match for iface name"

This commit is contained in:
Jenkins 2017-05-08 03:15:07 +00:00 committed by Gerrit Code Review
commit caad9221e0

View File

@ -577,7 +577,7 @@ function _move_neutron_addresses_route {
local IP_DEL=""
local IP_UP=""
local DEFAULT_ROUTE_GW
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\s/ { print \$3; exit }")
local ADD_OVS_PORT=""
local DEL_OVS_PORT=""
local ARP_CMD=""