-
Notifications
You must be signed in to change notification settings - Fork 148
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
Remove interface name from alt name if exist #292
Conversation
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
e438904
to
12edd61
Compare
Pull Request Test Coverage Report for Build 8220774282Details
💛 - Coveralls |
@adrianchiris @zeeke please take a look :) |
pkg/sriov/sriov.go
Outdated
"tempName", tempName) | ||
linkObj, err = s.nLink.LinkByName(tempName) | ||
if err != nil { | ||
return fmt.Errorf("error getting VF netdevice with name %s", tempName) |
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.
wrap the original error
return fmt.Errorf("error getting VF netdevice with name %s", tempName) | |
return fmt.Errorf("error getting VF netdevice with name %s: %w", tempName, err) |
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.
done thanks! :)
Only one minor comment. PR looks good to me |
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
12edd61
to
1184fad
Compare
Thanks @zeeke done |
Hi @zeeke @e0ne @Eoghan1232 when the time allows please review this PR thanks :) |
Hi @SchSeba I am okay with the change, but not sure why it's an issue. |
@Eoghan1232 thanks for the comment! the reason we need this change (it's better explained in the issue) is that we are not able to return the vf to the host network namespace with is original name because it contains the same name in alt-name. btw if host-cni use this feature it also needs to remove the alt-name before it restore it or it will not work |
thanks for the info. |
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
Fixes: #250