l2

package
v0.0.0-...-a9890c3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VTEPTransport

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

VTEPTransport adds support for VTEP devices via linux kernel

func NewVTEPTransport

func NewVTEPTransport(pubIface netlink.Link) *VTEPTransport

NewVTEPTransport inits the transport

func (*VTEPTransport) AddEP

func (v *VTEPTransport) AddEP(vnid uint32, br *netlink.Bridge) error

AddEP adds a new VTEP to a given bridge

func (*VTEPTransport) AddForwardEntry

func (v *VTEPTransport) AddForwardEntry(vnid uint32, mac net.HardwareAddr, ip net.IP) error

AddForwardEntry adds a forwarding entry to the VTEPs FDB

func (*VTEPTransport) AddVLAN

func (v *VTEPTransport) AddVLAN(vnid uint32, vlan uint16) error

AddVLAN adds a vlan to the VTEP for trunking

func (*VTEPTransport) DelEP

func (v *VTEPTransport) DelEP(vnid uint32) error

DelEP removes the VTEP device

func (*VTEPTransport) DelVLAN

func (v *VTEPTransport) DelVLAN(vnid uint32, vlan uint16) error

DelVLAN removes a vlan from the VTEP for trunking

func (*VTEPTransport) ForwardingMiss

func (v *VTEPTransport) ForwardingMiss(vnid uint32) (<-chan transport.ForwardingMiss, error)

ForwardingMiss provides a readonly channel to react to missed FDB entries

func (*VTEPTransport) SetMTU

func (v *VTEPTransport) SetMTU(mtu int32) error

SetMTU sets the default MTU of added vtep devices

func (*VTEPTransport) Start

func (v *VTEPTransport) Start() error

Start begins the listener

func (*VTEPTransport) Status

func (v *VTEPTransport) Status(vnid uint32) transport.EPStatus

Status gives the device status of VTEP

Jump to

Keyboard shortcuts

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