Skip to content

Commit 608b9f0

Browse files
Fix Bridge detection
1 parent 369265a commit 608b9f0

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
@@ -544,7 +544,7 @@ advanced_settings() {
544544
start=$(echo "${pair}" | cut -d':' -f1)
545545
end=$(echo "${pair}" | cut -d':' -f2)
546546

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

0 commit comments

Comments
 (0)