Documentation ¶
Index ¶
- func AddDefaultRoute(gw net.IP, dev netlink.Link) error
- func AddHostRoute(ipn *net.IPNet, gw net.IP, dev netlink.Link) error
- func AddRoute(ipn *net.IPNet, gw net.IP, dev netlink.Link) error
- func CreateOrUpdateBridge(name, ip string, mtu int) (*netlink.Bridge, error)
- func GetAllIPs(cidr string) ([]string, error)
- func GetVethIPInNS(netns ns.NetNS, ifName string) (string, error)
- func SetupVeth(netns ns.NetNS, br *netlink.Bridge, ifname, ip, gwip string, mtu int) error
- type AllocatedIP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateBridge ¶
func GetVethIPInNS ¶
GetVethIPInNS return the IP address for the ifName in container namespace
Types ¶
type AllocatedIP ¶
Click to show internal directories.
Click to hide internal directories.