Skip to content
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 routes for pod: fail only after checking all the gw addresses / ips #2293

Merged
merged 1 commit into from Jul 6, 2021

Conversation

fedepaol
Copy link
Collaborator

- What this PR does and why is it needed

When adding routes to pod, we fail inside the inner loop returning an error. What happens is that if the pod has two ip addresses, and the gw is set only for the second address, the function will mistakenly return an error.

- Special notes for reviewers

- How to verify it

- Description for the changelog

@coveralls
Copy link

coveralls commented Jun 29, 2021

Coverage Status

Coverage increased (+0.002%) to 53.771% when pulling d2e0593 on fedepaol:fixgwdualstack into 37b836d on ovn-org:master.

When adding routes to pod, we fail inside the inner loop returning an
error. What happens is that if the pod has two ip addresses, and the gw
is set only for the second address, the function will mistakenly return
an error.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
@dcbw
Copy link
Contributor

dcbw commented Jul 6, 2021

/lgtm

@dcbw dcbw merged commit 46d7276 into ovn-org:master Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants