containernetwork

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfContainerNetworkLink(linkName string) bool

func ConfigureContainerNic

func ConfigureContainerNic(containerNicName, hostNicName, nodeIfName string, allocatedIPs map[networkingv1.IPVersion]*daemonutils.IPInfo,
	macAddr net.HardwareAddr, netID *int32, netns ns.NetNS, mtu int, vlanCheckTimeout time.Duration,
	networkMode networkingv1.NetworkMode, neighGCThresh1, neighGCThresh2, neighGCThresh3 int, bgpManager *bgp.Manager) error

func ConfigureHostNic

func ConfigureHostNic(nicName string, allocatedIPs map[networkingv1.IPVersion]*daemonutils.IPInfo, localDirectTableNum int) error

func EnsureRpFilterConfigs added in v0.4.0

func EnsureRpFilterConfigs(containerHostIf string) error

func GenerateContainerVethPair

func GenerateContainerVethPair(podNamespace, podName string) (string, string)
func ListLocalAddressExceptLink(exceptLinkName string) ([]netlink.Addr, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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