You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ci-operator/step-registry/hypershift/kubevirt/baremetalds/metallb/hypershift-kubevirt-baremetalds-metallb-commands.sh
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,22 @@ set -o errexit
5
5
set -o pipefail
6
6
set -x
7
7
8
+
POOL_RANGE="192.168.111.30-192.168.111.50"
9
+
POOL_ADDRESS="${POOL_RANGE%%-*}"
10
+
11
+
# Determine which network interface routes to the IP pool subnet so that
12
+
# L2 announcements are only sent on the baremetal network interface.
13
+
# Without this, extra network interfaces (e.g. from nmstate) can cause
14
+
# MetalLB speakers to fail to announce VIPs.
15
+
NODE_NAME=$(oc get nodes -o jsonpath='{.items[0].metadata.name}')
16
+
METALLB_IFACE=$(oc debug "node/${NODE_NAME}" -- chroot /host ip route get "$POOL_ADDRESS"2>/dev/null \
0 commit comments