New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing IPv6 support for OVN/OVS config #1965
Conversation
Previously we were only looking at IPv4 for default routes. This also looks for IPv6 if IPv4 is not found. This patch also includes a fix for jq returning null when it fails to read, which we were not previously checking for. Signed-off-by: Tim Rozet <trozet@redhat.com>
/lgtm |
/assign @runcom |
/retest |
iface=$(ip -j route show default | jq -r '.[0].dev') | ||
if [ -n "$iface" ]; then | ||
echo "Default gateway interface found: ${iface}" | ||
if [[ -n "$iface" && "$iface" != "null" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw you can do jq -r '.[0].dev // empty'
to avoid the "null
" output
(you can also use jq -e
to exit with non-0 status on "null
", but I don't think that would help here)
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dcbw, runcom, trozet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@trozet do we expect this e2e-ovn-step-registry test to pass? |
I expect it to only fail 1 case for that job: However, I can see this patch worked in the must-gather journal for the node:
|
/retest |
/test e2e-gcp-op |
/retest Please review the full test history for this PR and help us cut down flakes. |
Previously we were only looking at IPv4 for default routes. This also
looks for IPv6 if IPv4 is not found. This patch also includes a fix for
jq returning null when it fails to read, which we were not previously
checking for.
Signed-off-by: Tim Rozet trozet@redhat.com