-
Notifications
You must be signed in to change notification settings - Fork 83
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
core: add methods to configure macvlan
interface for container and point to latest rtnetlink
#73
core: add methods to configure macvlan
interface for container and point to latest rtnetlink
#73
Conversation
Signed-off-by: Aditya Rajan <arajan@redhat.com>
macvlan
interface for container and point to laster rtnetlink
macvlan
interface for container and point to latest rtnetlink
tokio::spawn(_connection); | ||
|
||
//generate a random name on host to prevent collision. | ||
//check https://github.com/containernetworking/plugins/blob/master/plugins/main/macvlan/macvlan.go#L176 |
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.
This is important for our use-case to work.
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.
Just a small nit, otherwise LGTM
adds core methods to create macvlan interface. * Creates macvlan for specified master veth with given mode. * Moves and rename macvlan to container namespace. * Turn up macvlan interface Reference: https://www.cni.dev/plugins/current/main/macvlan/ Signed-off-by: Aditya Rajan <arajan@redhat.com>
f10ea1d
to
68c16c7
Compare
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Following PR makes these following changes
Adds core methods to create macvlan interface.
Cargo.toml
to point tomaster
ofrtnetlink
. After LinkAddRequest: Allow addingmacvlan
on a specified link. little-dude/netlink#194