routeimport

package
v0.0.0-...-5df01a4 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Manager
	Start() error
	Stop()
}

func New

func New(node string, nbClient client.Client) Controller

type Manager

type Manager interface {
	// AddNetwork instructs the manager to continously reconcile BGP routes from
	// the network host vrf to the network gateway router. A network can only be
	// added once otherwise an error will be returned.
	AddNetwork(network util.NetInfo) error

	// NeedsReconciliation checks the provided network information against the
	// stored one and returns whether there is any change requires
	// reconciliation. If the network is not known to the manager, it returns
	// false.
	NeedsReconciliation(network util.NetInfo) bool

	// ReconcileNetwork triggers a manual reconciliation.
	ReconcileNetwork(name string) error

	// ForgetNetwork instructs the manager to stop reconciling BGP routes from
	// the network host vrf to the network gateway router.
	ForgetNetwork(name string)
}

Jump to

Keyboard shortcuts

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