Merge "Look for ipv6 routes so ipv6-only jobs will not fail"
This commit is contained in:
commit
0d2d6f93f6
@ -233,7 +233,7 @@ OVS_PHYSICAL_BRIDGE=${OVS_PHYSICAL_BRIDGE:-br-ex}
|
||||
#
|
||||
# Example: ``LB_PHYSICAL_INTERFACE=eth1``
|
||||
if [[ $Q_AGENT == "linuxbridge" && -z ${LB_PHYSICAL_INTERFACE} ]]; then
|
||||
default_route_dev=$(ip route | grep ^default | awk '{print $5}')
|
||||
default_route_dev=$( (ip route; ip -6 route) | grep ^default | head -n 1 | awk '{print $5}')
|
||||
die_if_not_set $LINENO default_route_dev "Failure retrieving default route device"
|
||||
LB_PHYSICAL_INTERFACE=$default_route_dev
|
||||
fi
|
||||
|
@ -101,7 +101,6 @@ SUBNETPOOL_SIZE_V4=${SUBNETPOOL_SIZE_V4:-26}
|
||||
SUBNETPOOL_SIZE_V6=${SUBNETPOOL_SIZE_V6:-64}
|
||||
|
||||
default_v4_route_devs=$(ip -4 route | grep ^default | awk '{print $5}')
|
||||
die_if_not_set $LINENO default_v4_route_devs "Failure retrieving default IPv4 route devices"
|
||||
|
||||
default_v6_route_devs=$(ip -6 route list match default table all | grep via | awk '{print $5}')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user