dplanerc

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Overview

Package dplanerc contains gNMI task handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustWildcardQuery

func MustWildcardQuery() ygnmi.WildcardQuery[*dpb.Route]

MustWildcardQuery returns a wildcard card query for all routes.

func RouteQuery

func RouteQuery(ni string, prefix string) ygnmi.ConfigQuery[*dpb.Route]

RouteQuery returns a ygnmi query for a route with the given prefix and vrf.

Types

type Reconciler

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

Reconciler handles config updates to the paths.

func New

func New(conn grpc.ClientConnInterface, switchID, cpuPortID uint64, contextID string) *Reconciler

New creates a new interface handler.

func (*Reconciler) StartInterface

func (ni *Reconciler) StartInterface(ctx context.Context, client *ygnmi.Client) error

Start starts running the handler, watching the cache and the kernel interfaces.

func (*Reconciler) StartRoute

func (ni *Reconciler) StartRoute(ctx context.Context, client *ygnmi.Client) error

func (*Reconciler) Stop

func (ni *Reconciler) Stop(context.Context) error

Stop stops all watchers.

Jump to

Keyboard shortcuts

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