Documentation ¶
Index ¶
- func Attach(link netlink.Link, bridge *netlink.Bridge, name ...string) error
- func AttachNic(link netlink.Link, bridge *netlink.Bridge) error
- func AttachNicWithMac(link netlink.Link, bridge *netlink.Bridge) error
- func Delete(name string) error
- func DetachNic(link netlink.Link) error
- func Exists(name string) bool
- func Get(name string) (*netlink.Bridge, error)
- func List() ([]*netlink.Bridge, error)
- func New(name string) (*netlink.Bridge, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attach ¶ added in v0.4.9
Attach attaches any link to a bridge, based on the link type can be directly plugged or crossed over with a veth pair if name is provided, the name will be used in case of veth pair instead of a generated name
func AttachNicWithMac ¶
AttachNicWithMac attaches an interface to a bridge and sets the MAC of the bridge to the same of the NIC
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.