l2announcer

package
v1.15.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"l2-announcer",
	"L2 Announcer",

	cell.Provide(NewL2Announcer),
	cell.Provide(l2AnnouncementPolicyResource),
)

Functions

This section is empty.

Types

type L2Announcer

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

L2Announcer takes all L2 announcement policies and filters down to those that match the labels of the local node. It then searches all services that match the selectors of the policies. For each service, we attempt to take a lease, the holder node persists all IPs and netdev combinations selected by the policy to the L2AnnounceTable. Datapath components consume them and handle traffic for the IP+netdev entries.

func NewL2Announcer

func NewL2Announcer(params l2AnnouncerParams) *L2Announcer

func (*L2Announcer) DevicesChanged

func (l2a *L2Announcer) DevicesChanged(devices []string)

DevicesChanged can be invoked by an external component responsible for discovering all available network devices to inform this component of all the devices we can use for L2 announcements.

Jump to

Keyboard shortcuts

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