Documentation
¶
Index ¶
- func CheckVethPair(netns ns.NetNS, ifName string, ip net.IP) error
- func CreateBridge(bridge string, mtu int, gateway net.IPNet) (netlink.Link, error)
- func DelVethPair(netns ns.NetNS, ifName string) error
- func SetupVethPair(netns ns.NetNS, br netlink.Link, mtu int, ifName string, podIP *net.IPNet, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVethPair ¶
CheckVethPair 检查一个 veth pair 是否存在
func CreateBridge ¶
CreateBridge 创建一个桥接设备
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.