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 ¶
Key implements the bpf.MapKey interface.
Must be in sync with struct vtep_key in <bpf/lib/vtep.h>
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
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
Click to show internal directories.
Click to hide internal directories.