vtep

package
v0.0.0-...-dd9aec0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	VTEPName                   string
	UnderlayInterface          net.Interface
	UnderlayIP                 net.IP
	OverlayIP                  net.IP
	OverlayHardwareAddr        net.HardwareAddr
	VNI                        int
	OverlayNetworkPrefixLength int
	VTEPPort                   int
}

type ConfigCreator

type ConfigCreator struct {
	NetAdapter netAdapter
}

func (*ConfigCreator) Create

func (c *ConfigCreator) Create(clientConf clientConfig.Config, lease controller.Lease) (*Config, error)

type Converger

type Converger struct {
	OverlayNetwork *net.IPNet
	LocalSubnet    *net.IPNet
	LocalVTEP      net.Interface
	NetlinkAdapter netlinkAdapter
	Logger         lager.Logger
}

func (*Converger) Converge

func (c *Converger) Converge(leases []controller.Lease) error

type Factory

type Factory struct {
	NetlinkAdapter netlinkAdapter
	Logger         lager.Logger
}

func (*Factory) CreateVTEP

func (f *Factory) CreateVTEP(cfg *Config) error

func (*Factory) DeleteVTEP

func (f *Factory) DeleteVTEP(deviceName string) error

func (*Factory) GetVTEPState

func (f *Factory) GetVTEPState(vtepName string) (net.HardwareAddr, net.IP, int, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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