vrfmanager

package
v0.0.0-...-18c0211 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 12 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 struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(routeManager *routemanager.Controller) *Controller

func (*Controller) AddVRF

func (vrfm *Controller) AddVRF(name string, slaveInterface string, table uint32, routes []netlink.Route) error

AddVRF adds a VRF device into the node.

func (*Controller) AddVRFRoutes

func (vrfm *Controller) AddVRFRoutes(name string, routes []netlink.Route) error

AddVRFRoutes adds routes to the specified VRF

func (*Controller) DeleteVRF

func (vrfm *Controller) DeleteVRF(name string) (err error)

DeleteVRF deletes given VRF device from the node.

func (*Controller) Repair

func (vrfm *Controller) Repair(validVRFs sets.Set[string]) error

Repair deletes stale VRF device(s) on the host. This helps remove device(s) for which DeleteVRF is never invoked. Assumptions: 1) The validVRFs list must contain device for which AddVRF is already invoked. 2) The device name(s) in validVRFs are suffixed with "-vrf" and prefixed with "mp".

func (*Controller) Run

func (vrfm *Controller) Run(stopCh <-chan struct{}, doneWg *sync.WaitGroup) error

Run starts the VRF Manager to manage its devices

Jump to

Keyboard shortcuts

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