Documentation ¶
Overview ¶
Package geneve contains utilities for the geneve interface
Index ¶
- func CreateGeneveInterface(name string, local, remote net.IP, id uint32, enableARP bool) error
- func EnsureGeneveInterfaceAbsence(interfaceName string) error
- func EnsureGeneveInterfacePresence(interfaceName, localIP, remoteIP string, id uint32, enableARP bool) error
- func ExistGeneveInterface(name string) netlink.Link
- func ExistGeneveInterfaceAddr(link netlink.Link, addr net.IP) *netlink.Addr
- func ForgeGeneveInterface(name string, remote net.IP, id uint32) *netlink.Geneve
- func GetGeneveTunnelID(ctx context.Context, cl client.Client, ...) (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGeneveInterface ¶
CreateGeneveInterface creates a geneve interface with the given name, remote IP and ID.
func EnsureGeneveInterfaceAbsence ¶
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 ¶
ExistGeneveInterface checks if a geneve interface with the given name exists. If it exists, it returns the link, otherwise it returns nil.
func ExistGeneveInterfaceAddr ¶
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 ¶
ForgeGeneveInterface creates a geneve interface with the given name, remote IP and ID.
Types ¶
This section is empty.