Skip to content

Commit

Permalink
Merge pull request #79 from openshift-cherrypick-robot/cherry-pick-78…
Browse files Browse the repository at this point in the history
…-to-release-4.4

[release-4.4] Bug 1838083: Allows users to configure any non-link-local IPV6 address for the provisioning interface
  • Loading branch information
openshift-merge-robot committed Jun 11, 2020
2 parents 1947932 + 1a603c8 commit 1dc25c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ironic-common.sh
Expand Up @@ -14,7 +14,7 @@ function wait_for_interface_or_ip() {
else
until [ ! -z "${IRONIC_IP}" ]; do
echo "Waiting for ${PROVISIONING_INTERFACE} interface to be configured"
export IRONIC_IP=$(ip -br addr show dev $PROVISIONING_INTERFACE | grep -Po "[^\s]+/[0-9]+" | grep -e "^fd" -e "\." | sed -e 's%/.*%%' | head -n 1)
export IRONIC_IP=$(ip -br add show scope global up dev "${PROVISIONING_INTERFACE}" | awk '{print $3}' | sed -e 's%/.*%%' | head -n 1)
sleep 1
done
fi
Expand Down

0 comments on commit 1dc25c5

Please sign in to comment.