windows

package
v1.11.0-cni-plu...-8f3027a Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0, Apache-2.0 Imports: 25 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	DefaultVNI = 4096
)

Variables

This section is empty.

Functions

func CreateAndAttachHostEP

func CreateAndAttachHostEP(epName string, hnsNetwork *hcsshim.HNSNetwork, subNet *net.IPNet, logger *logrus.Entry) (*hcsshim.HNSEndpoint, error)

func CreateNetworkName

func CreateNetworkName(netName string, subnet *net.IPNet) string

func EnsureNetworkExists

func EnsureNetworkExists(networkName string, subNet *net.IPNet, logger *logrus.Entry) (*hcsshim.HNSNetwork, error)

func EnsureVXLANTunnelAddr

func EnsureVXLANTunnelAddr(ctx context.Context, calicoClient calicoclient.Interface, nodeName string, ipNet *net.IPNet, networkName string) error

func GetDRMACAddr

func GetDRMACAddr(networkName string, subNet *net.IPNet) (net.HardwareAddr, error)

func GetMacAddr

func GetMacAddr(mgmtIp string) (addr string)

GetMacAddr gets the MAC hardware address of the host machine

func NetworkApplicationContainer

func NetworkApplicationContainer(args *skel.CmdArgs) error

NetworkApplicationContainer tries to attach the application container to the endpoint that is attached to its pause container. On failure, it returns the error. This is done so that the DNS details are reflected in the container.

func NewWindowsDataplane

func NewWindowsDataplane(conf types.NetConf, logger *logrus.Entry) *windowsDataplane

func SetupL2bridgeNetwork

func SetupL2bridgeNetwork(networkName string, subNet *net.IPNet, logger *logrus.Entry) (*hcsshim.HNSNetwork, error)

func SetupRoutes

func SetupRoutes(hostVeth interface{}, result *cniv1.Result) error

SetupRoutes sets up the routes for the host side of the veth pair.

func SetupVxlanNetwork

func SetupVxlanNetwork(networkName string, subNet *net.IPNet, vni uint64, logger *logrus.Entry) (*hcsshim.HNSNetwork, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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