Merge "Only take the first global, non temporary ipv6 address"
This commit is contained in:
commit
585501a250
@ -806,7 +806,7 @@ function _move_neutron_addresses_route {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $af == "inet6" ]]; then
|
if [[ $af == "inet6" ]]; then
|
||||||
IP_BRD=$(ip -f $af a s dev $from_intf | grep inet6 | awk '{ print $2, $3, $4; exit }')
|
IP_BRD=$(ip -f $af a s dev $from_intf | grep 'scope global' | sed '/temporary/d' | awk '{ print $2, $3, $4; exit }')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DEFAULT_ROUTE_GW" != "" ]; then
|
if [ "$DEFAULT_ROUTE_GW" != "" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user