Skip to content

Commit 4b31957

Browse files
Fix Bridge detection (#4495)
1 parent 35c99ae commit 4b31957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/build.func

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ advanced_settings() {
545545
start=$(echo "${pair}" | cut -d':' -f1)
546546
end=$(echo "${pair}" | cut -d':' -f2)
547547

548-
if awk "NR >= ${start} && NR <= ${end}" "${iface_filepath}" | grep -qP '^\s*bridge[-_](ports|stp|fd|vlan-aware|vids)\s+'; then
548+
if awk "NR >= ${start} && NR <= ${end}" "${iface_filepath}" | grep -qP '^\s*(bridge[-_](ports|stp|fd|vlan-aware|vids)|ovs_type\s+OVSBridge)\b'; then
549549
iface_name=$(sed "${start}q;d" "${iface_filepath}" | awk '{print $2}')
550550
BRIDGES="${iface_name}"$'\n'"${BRIDGES}"
551551
fi

0 commit comments

Comments
 (0)