Merge "Fix OVS tunnel interface grep"
This commit is contained in:
commit
956cf735d1
@ -30,7 +30,7 @@ timeout 3m neutron-sanity-check --config-file /etc/neutron/neutron.conf --config
|
|||||||
tunnel_interface="{{- .Values.network.interface.tunnel -}}"
|
tunnel_interface="{{- .Values.network.interface.tunnel -}}"
|
||||||
if [ -z "${tunnel_interface}" ] ; then
|
if [ -z "${tunnel_interface}" ] ; then
|
||||||
# search for interface with default routing
|
# search for interface with default routing
|
||||||
tunnel_interface=$(ip r | grep default | grep -oP '(?<=dev ).*')
|
tunnel_interface=$(ip route | awk '/^default/ { print $5 }' | head -1 )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# determine local-ip dynamically based on interface provided but only if tunnel_types is not null
|
# determine local-ip dynamically based on interface provided but only if tunnel_types is not null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user