We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fd38bc commit e46c18cCopy full SHA for e46c18c
etc/kayobe/ansible/fixes/ovn-fix-chassis-priorities.yml
@@ -81,8 +81,8 @@
81
gateway_info=$(ovn-nbctl lrp-get-gateway-chassis "$ext_port" 2>/dev/null || true)
82
83
while IFS= read -r line; do
84
- # Strip prefix
85
- chassis=$(echo "$line" | awk '{print $1}' | cut -d'_' -f2-)
+ # Strip prefix, allowing '-' or '_' separator
+ chassis=$(echo "$line" | awk '{print $1}' | sed "s/^${ext_port}[-_]//")
86
gateway_chassis="$gateway_chassis $chassis"
87
done <<< "$gateway_info"
88
0 commit comments