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

add kernel interface manipulation utilities #10

Merged
merged 1 commit into from
Feb 10, 2020

Conversation

przemeklal
Copy link
Contributor

  • add idempotent wrapper for netlink library
  • add utilities for finding netlink interfaces representing host
    devices, e.g. SR-IOV virtual functions

Signed-off-by: Przemyslaw Lal przemyslawx.lal@intel.com

* add idempotent wrapper for netlink library
* add utilities for finding netlink interfaces representing host
devices, e.g. SR-IOV virtual functions

Signed-off-by: Przemyslaw Lal <przemyslawx.lal@intel.com>
Copy link
Member

@rdimitrov rdimitrov left a comment

Choose a reason for hiding this comment

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

LGTM. I like that you wrapped the helper functions in a dedicated interface 👍

MoveToNetns(target netns.NsHandle) error
SetAdminState(state State) error
SetName(name string) error
}
Copy link
Member

Choose a reason for hiding this comment

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

I love that this makes things mockable :)

@edwarnicke edwarnicke requested a review from rktidwell February 10, 2020 16:18
@edwarnicke
Copy link
Member

@rktidwell Does this look good to you?

Copy link

@rktidwell rktidwell left a comment

Choose a reason for hiding this comment

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

Looks good to me. I'll adjust some of the work I'm doing, I prefer the way you've done things in this PR.

@edwarnicke edwarnicke merged commit c6b661c into networkservicemesh:master Feb 10, 2020
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.

4 participants