macvlan

package
v0.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string, master string, netns ns.NetNS) (*netlink.Macvlan, error)

Create creates a new macvlan interface in the network namespace name is the name of the macvlan interface master is the name of the device used as master for the macvlan interface netns is network namespace where to create the macvlan

func GetByName

func GetByName(name string) (*netlink.Macvlan, error)

GetByName return a macvlan object by its name

func Install

func Install(link *netlink.Macvlan, hw net.HardwareAddr, ips []*net.IPNet, routes []*netlink.Route, netns ns.NetNS) error

Install configures a macvlan interfaces created with Create method

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL