geneve

package
v0.11.0-rc.2 Latest Latest
Warning

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

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

Documentation

Overview

Package geneve contains utilities for the geneve interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGeneveInterface

func CreateGeneveInterface(name string, local, remote net.IP, id uint32, enableARP bool) error

CreateGeneveInterface creates a geneve interface with the given name, remote IP and ID.

func EnsureGeneveInterfaceAbsence

func EnsureGeneveInterfaceAbsence(interfaceName string) error

EnsureGeneveInterfaceAbsence ensures that a geneve interface does not exist for the given internal node.

func EnsureGeneveInterfacePresence

func EnsureGeneveInterfacePresence(interfaceName, localIP, remoteIP string, id uint32, enableARP bool) error

EnsureGeneveInterfacePresence ensures that a geneve interface exists for the given internal node.

func ExistGeneveInterface

func ExistGeneveInterface(name string) netlink.Link

ExistGeneveInterface checks if a geneve interface with the given name exists. If it exists, it returns the link, otherwise it returns nil.

func ExistGeneveInterfaceAddr

func ExistGeneveInterfaceAddr(link netlink.Link, addr net.IP) *netlink.Addr

ExistGeneveInterfaceAddr checks if a geneve interface with the given name has the given address. If it exists, it returns the address, otherwise it returns nil.

func ForgeGeneveInterface

func ForgeGeneveInterface(name string, remote net.IP, id uint32) *netlink.Geneve

ForgeGeneveInterface creates a geneve interface with the given name, remote IP and ID.

func GetGeneveTunnelID

func GetGeneveTunnelID(ctx context.Context, cl client.Client,
	internalFabricName, internalNodeName string) (uint32, error)

GetGeneveTunnelID returns the geneve tunnel id for the given internal fabric and node.

Types

This section is empty.

Jump to

Keyboard shortcuts

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