vtep

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Overview

+groupName=maps

Index

Constants

View Source
const (
	// MaxEntries is the maximum number of keys that can be present in the
	// VTEP map.
	MaxEntries = defaults.MaxVTEPDevices

	// MapName is the canonical name for the VTEP map on the filesystem.
	MapName = "cilium_vtep_map"
)

Variables

View Source
var Cell = cell.Module(
	"vtep-map",
	"eBPF map which contains the VTEP device information",

	cell.Provide(newVTEPMap),
)

Cell provides the VTEP map that contains the VTEP device information.

Functions

This section is empty.

Types

type Key

type Key struct {
	IP types.IPv4 `align:"vtep_ip"`
}

Key implements the bpf.MapKey interface.

Must be in sync with struct vtep_key in <bpf/lib/vtep.h>

func (*Key) New

func (k *Key) New() bpf.MapKey

func (Key) String

func (k Key) String() string

type Map

type Map interface {
	Update(newCIDR *cidr.CIDR, newTunnelEndpoint net.IP, vtepMAC mac.MAC) error
	Delete(tunnelEndpoint net.IP) error
	Dump(hash map[string][]string) error
}

Map provides access to the eBPF map vtep.

func LoadVTEPMap added in v1.19.0

func LoadVTEPMap(logger *slog.Logger) Map

LoadVTEPMap loads the pre-initialized vtep map for access. This should only be used from components which aren't capable of using hive - mainly the Cilium CLI. It needs to initialized beforehand via the Cilium Agent.

type VtepEndpointInfo

type VtepEndpointInfo struct {
	VtepMAC        mac.Uint64MAC `align:"vtep_mac"`
	TunnelEndpoint types.IPv4    `align:"tunnel_endpoint"`
	// contains filtered or unexported fields
}

VtepEndpointInfo implements the bpf.MapValue interface. It contains the VTEP endpoint MAC and IP.

func (*VtepEndpointInfo) New

func (v *VtepEndpointInfo) New() bpf.MapValue

func (*VtepEndpointInfo) String

func (v *VtepEndpointInfo) String() string

Jump to

Keyboard shortcuts

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