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

use ip --json route and filter with python #21

Open
wants to merge 4 commits into
base: drop-virtinterfaced
Choose a base branch
from

Conversation

Lunarequest
Copy link

This fixes the test failures by using the fact all virtual bridges are virbrN. Instead of gambling that the interfaces we want are first we filter out all the virtual interfaces. This leaves only the interfaces we want in the routes.

martinpitt and others added 4 commits August 26, 2024 18:47
This depends on the deprecated `virtinterfaced` which we are getting rid
of. This code was both unnecessarily complicated, and also too
arbitrary: It just took what interface appeared in `virsh iface-list`
first.

Change this to be more realistic: The test creates a new network which
NATs to a host device, so in most practical cases that should be the one
having the default route. Rename the function and add a comment to
clarify this.
virtinterfaced is being deprecated [1], and at least some distros want
to get rid of the dependency.

Fixes cockpit-project#1777

[1] https://listman.redhat.com/archives/libvir-list/2020-December/msg00183.html
@martinpitt martinpitt force-pushed the drop-virtinterfaced branch 2 times, most recently from 68ec0e9 to b8b3be2 Compare October 1, 2024 08:32
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.

2 participants