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

Fix default route with libnl3.8+ #405

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Conversation

dupondje
Copy link
Member

@dupondje dupondje commented Feb 1, 2024

Since libnl3.8, he nl_addr_parse does not return 'none' anymore for 'default', but it returns a 0.0.0.0/0 addr.
thom311/libnl@0c0aee8

But since we depend on that value in vdsm, it never reported a default gateway anymore, and caused networks to be out of sync.

So next to 'none' we also check for '0.0.0.0/0' or '::/0'.

lib/vdsm/network/netinfo/routes.py Outdated Show resolved Hide resolved
Since libnl3.8, the nl_addr_parse function does not return 'none' anymore for
'default', but it returns a 0.0.0.0/0 addr.
thom311/libnl@0c0aee8

But since we depend on that value in vdsm, it never reports a default
gateway anymore, causing networks to be out of sync.

So next to 'none' we also check for '0.0.0.0/0' or '::/0'.

Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
@aesteve-rh aesteve-rh self-requested a review February 1, 2024 13:05
Copy link
Member

@almusil almusil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@michalskrivanek
Copy link
Member

/ost

1 similar comment
@michalskrivanek
Copy link
Member

/ost

@almusil almusil merged commit 49eaf70 into oVirt:master Feb 1, 2024
25 of 26 checks passed
@sandrobonazzola sandrobonazzola added this to the ovirt-4.5.7 milestone Oct 18, 2024
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.

5 participants