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

[examples] Added few vrf examples following #PR59 #74

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frederic-loui
Copy link

Added few examples following VRF PR-59 corresponding to vrf manipulation primitives.

Question:
Is there a better way to fetch table_id using vrf name rather than "crawling LinkAttributes->LinkInfo->InfoData->InfoVrf->TableId ?

Anyhow, many thanks for your awesome work on rust-netlink !

@cathay4t
Copy link
Member

cathay4t commented Sep 12, 2024

Added few examples following VRF PR-59 corresponding to vrf manipulation primitives.

Question: Is there a better way to fetch table_id using vrf name rather than "crawling LinkAttributes->LinkInfo->InfoData->InfoVrf->TableId ?

This is the only way for using rtnetlink directly, I was hoping people creating crate over rtnetlink for their own use case.
I have a project https://github.com/nispor/nispor doing some data abstracting, not sure fit your need or not.

Meanwhile, I am wondering why people create PR adding examples codes which seems transparent to me, any reason we are bloating the example folder?

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