Documentation ¶
Overview ¶
Package netutils is the package that contains network related utilities.
Index ¶
- func AddDefaultGWCache(cacheDir string, rt *libcni.RuntimeConf, netName string, ifName string, ...) error
- func DeleteDefaultGW(args *skel.CmdArgs, ifName string) error
- func DeleteDefaultGWCache(cacheDir string, rt *libcni.RuntimeConf, netName string, ifName string, ...) error
- func SetDefaultGW(args *skel.CmdArgs, ifName string, gateways []net.IP) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultGWCache ¶ added in v3.9.1
func AddDefaultGWCache(cacheDir string, rt *libcni.RuntimeConf, netName string, ifName string, gw []net.IP) error
AddDefaultGWCache updates libcni cache to add default gateway result
func DeleteDefaultGW ¶
DeleteDefaultGW removes the default gateway from marked interfaces.
func DeleteDefaultGWCache ¶ added in v3.9.1
func DeleteDefaultGWCache(cacheDir string, rt *libcni.RuntimeConf, netName string, ifName string, ipv4, ipv6 bool) error
DeleteDefaultGWCache updates libcni cache to remove default gateway routes in result
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.