vxlan

package
v0.18.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MTUOverhead = 50

Variables

This section is empty.

Functions

func GetVtepIPAddressFrom

func GetVtepIPAddressFrom(ipAddr string, networkPrefix int) (net.IP, error)

Types

type Attributes

type Attributes struct {
	Name     string
	VxlanID  int
	Group    net.IP
	SrcAddr  net.IP
	VtepPort int
	Mtu      int
}

type Interface

type Interface struct {
	// contains filtered or unexported fields
}

func NewInterface

func NewInterface(attrs *Attributes, netLink netlinkAPI.Interface) (*Interface, error)

func (*Interface) AddFDB

func (i *Interface) AddFDB(ipAddress net.IP, hwAddr string) error

func (*Interface) AddRoutes

func (i *Interface) AddRoutes(gwIP, srcIP net.IP, tableID int, destCIDRs ...net.IPNet) error

func (*Interface) ConfigureIPAddress

func (i *Interface) ConfigureIPAddress(ipAddress net.IP, mask net.IPMask) error

func (*Interface) DelFDB

func (i *Interface) DelFDB(ipAddress net.IP, hwAddr string) error

func (*Interface) DelRoutes

func (i *Interface) DelRoutes(tableID int, destCIDRs ...net.IPNet) error

func (*Interface) DeleteLinkDevice

func (i *Interface) DeleteLinkDevice() error
func (i *Interface) SetupLink() error

Jump to

Keyboard shortcuts

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