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

feature: support flag configuration for ipvlan #1032

Open
AryaLee opened this issue May 6, 2024 · 0 comments
Open

feature: support flag configuration for ipvlan #1032

AryaLee opened this issue May 6, 2024 · 0 comments

Comments

@AryaLee
Copy link

AryaLee commented May 6, 2024

Support flag configuration for ipvlan. The value is one of “bridge”, “private”, “vepa”, defaults to “bridge”.

	mv := &netlink.IPVlan{
		LinkAttrs: netlink.LinkAttrs{
			MTU:         conf.MTU,
			Name:        tmpName,
			ParentIndex: m.Attrs().Index,
			Namespace:   netlink.NsFd(int(netns.Fd())),
		},
		Mode: mode,
		Flag: flag,
	}
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

No branches or pull requests

1 participant