-
Notifications
You must be signed in to change notification settings - Fork 749
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 support for alternative names #862
Conversation
04beb33
to
2e05126
Compare
Thank you. |
I would love to see this merged. Need it to set user-friendly names for otherwise restricted link length |
@SchSeba I wonder, which func would one use to get the interface by its altname? |
Hi @hellt, |
Hi @SchSeba I wonder, since we have LinkByAlias, wouldn't it be nice to have LinkByAltName? |
The problem is that btw I didn't try that but I think you can just use the LinkByName with the Alt name and it should work can you give it a try? |
yes, this is also how Line 1845 in a4fcbb7
I did try to use |
9805817
to
776d334
Compare
@aboch @vishvananda could you take a look at this PR ? :) |
Hi @hellt be aware that now it works link netlink does you can do LinkByName and it will find the device base on the name or the altName
|
776d334
to
5739471
Compare
@adrianchiris please take another look when you have time |
@SchSeba code changes look OK. thx for addressing my comments. could you please update commit message to mention the changes in |
This commit add the support for alternative names. * exposing the attributes in the link object. * adding the add and delete functions * allow LinkByName() to also find devices by altname like `ip link` Signed-off-by: Sebastian Sch <[email protected]>
5739471
to
13fc65b
Compare
Done thanks @adrianchiris ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This commit add the support for alternative names.
exposing the attributes in the link object.
also adding the add and delete functions