Skip to content

Commit

Permalink
fix grep matching device in routes (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Oct 25, 2022
1 parent 113f62f commit 892aa75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/images/start-ovs.sh
Expand Up @@ -147,7 +147,7 @@ function wait_flows_pre_check() {
local devices=""
local ips=($(echo $OVN_DB_IPS | sed 's/,/ /g'))
for ip in ${ips[*]}; do
devices="$devices $(ip route get $ip | grep -oE 'dev [^\s]+' | awk '{print $2}')"
devices="$devices $(ip route get $ip | grep -oE 'dev .+' | awk '{print $2}')"
done

bridges=($(ovs-vsctl --no-heading --columns=name find bridge external-ids:vendor=kube-ovn))
Expand Down

0 comments on commit 892aa75

Please sign in to comment.