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

Fixes finding default gateway for configured GW interface #2782

Merged
merged 1 commit into from Feb 2, 2022

Conversation

trozet
Copy link
Contributor

@trozet trozet commented Jan 31, 2022

The code for determining the default gateway was not taking into
consideration if the gateway interfaces was provided via config and
would return any default gateway found on the host. This is an issue
when a system has more than 1 default gateway, as well as if a user
provided an interface other than the real default gateway interface.

If the gateway interface is provided via config, the code now scopes
default routes found to only that interface.

Signed-off-by: Tim Rozet trozet@redhat.com

The code for determining the default gateway was not taking into
consideration if the gateway interfaces was provided via config and
would return any default gateway found on the host. This is an issue
when a system has more than 1 default gateway, as well as if a user
provided an interface other than the real default gateway interface.

If the gateway interface is provided via config, the code now scopes
default routes found to only that interface.

Signed-off-by: Tim Rozet <trozet@redhat.com>
@trozet
Copy link
Contributor Author

trozet commented Jan 31, 2022

would like to just pull this downstream as a sanity test, since we always set gateway interface there

@trozet
Copy link
Contributor Author

trozet commented Jan 31, 2022

downstream: openshift/ovn-kubernetes#939

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.005%) to 50.806% when pulling 87db93d on trozet:fix_default_gw_detection into c0be0a3 on ovn-org:master.

@trozet
Copy link
Contributor Author

trozet commented Feb 1, 2022

downstream looks good..removing hold

@dcbw
Copy link
Contributor

dcbw commented Feb 1, 2022

/lgtm

@trozet trozet merged commit 6c7c5b7 into ovn-org:master Feb 2, 2022
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