Skip to content

Commit b6527e1

Browse files
committed
IPaddr2: fix interfaces named with keywords like primary, secondary, etc
This can cause issues when another interface is in DOWN state.
1 parent 9a6e39a commit b6527e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

heartbeat/IPaddr2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ ip_served() {
10281028
return 0
10291029
fi
10301030

1031-
if ocf_is_true "$OCF_RESKEY_check_link_status" && $IP2UTIL -f $FAMILY addr show $cur_nic | \
1031+
if ocf_is_true "$OCF_RESKEY_check_link_status" && $IP2UTIL -f $FAMILY addr show dev $cur_nic | \
10321032
grep -q "[[:space:]]\(DOWN\|LOWERLAYERDOWN\)[[:space:]]"; then
10331033
echo "down"
10341034
return 0

0 commit comments

Comments
 (0)