netutils

package
v3.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package netutils is the package that contains network related utilities.

Index

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

func DeleteDefaultGW(args *skel.CmdArgs, ifName string) error

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

func SetDefaultGW

func SetDefaultGW(args *skel.CmdArgs, ifName string, gateways []net.IP) error

SetDefaultGW adds a default gateway on a specific interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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