Documentation ¶
Index ¶
- type Controller
- func (vrfm *Controller) AddVRF(name string, slaveInterface string, table uint32, routes []netlink.Route) error
- func (vrfm *Controller) AddVRFRoutes(name string, routes []netlink.Route) error
- func (vrfm *Controller) DeleteVRF(name string) (err error)
- func (vrfm *Controller) Repair(validVRFs sets.Set[string]) error
- func (vrfm *Controller) Run(stopCh <-chan struct{}, doneWg *sync.WaitGroup) error
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".
Click to show internal directories.
Click to hide internal directories.