Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

LinkAddRequest: Allow adding macvlan on a specified link. #194

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

flouthoc
Copy link
Contributor

Hi Team,

Thank you so much for porting and maintaining netlink bindings.

Following PR adds support to create MACVLAN on a link.
This is equivalent to ip link add NAME name link LINK type macvlan mode MACVLAN_MODE.
But instead of specifying a link name (LINK), we specify a link index
and a mode.

Veth must be already up for this to work. Following behaviour is
expected cause its same for vxlan and vlan.

Thanks again.

@flouthoc
Copy link
Contributor Author

@cathay4t @little-dude Could you PTAL

@flouthoc
Copy link
Contributor Author

Let me know if any custom configuration is needed for payload. However this should be good for start ?

Ackd: for CI let me push formatted version.

@flouthoc
Copy link
Contributor Author

It seems CI is asking me to fmt files which are not relevent to this change is this expected ?

@flouthoc flouthoc force-pushed the add_request_macvlan branch 2 times, most recently from dc55251 to 7af2e95 Compare November 10, 2021 18:11
@flouthoc
Copy link
Contributor Author

@cathay4t @little-dude Could we re-trigger CI again plz.

Following adds support to create MACVLAN on a link.
This is equivalent to `ip link add NAME name link LINK type macvlan mode MACVLAN_MODE`.
But instead of specifying a link name (LINK), we specify a link index
and a mode.

Veth must be already up for this to work. Following behaviour is
expected cause its same for `vxlan` and `vlan`.

Signed-off-by: Aditya Rajan <arajan@redhat.com>
@cathay4t
Copy link
Collaborator

cathay4t commented Nov 11, 2021

Patch looks good to me.

Manual tested with example code, works well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants