networkutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllZeroMAC = net.HardwareAddr{0, 0, 0, 0, 0, 0}
)

Functions

func ApplyFDBs

func ApplyFDBs(current, desired map[string]*netlink.Neigh) (err error)

func ApplyRoutes

func ApplyRoutes(current, desired map[string]*netlink.Route) (err error)

func ApplyRules

func ApplyRules(current, desired map[string]*netlink.Rule) (err error)

func CleanRoutesOnNode

func CleanRoutesOnNode(routeTableID int) error

func CleanRulesOnNode

func CleanRulesOnNode(routeTableID int) error

func ListFDBsOnNode

func ListFDBsOnNode(link netlink.Link) (map[string]*netlink.Neigh, error)

func ListRoutesOnNode

func ListRoutesOnNode(routeTableID int) (map[string]*netlink.Route, error)

func ListRulesOnNode

func ListRulesOnNode(routeTableID int) (map[string]*netlink.Rule, error)

func NewRavenRule

func NewRavenRule(rulePriority int, routeTableID int) *netlink.Rule

func RouteKey

func RouteKey(route *netlink.Route) string

func RuleKey

func RuleKey(rule *netlink.Rule) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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