gribi

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 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 Server

type Server struct {
	*server.Server
	// contains filtered or unexported fields
}

Server is a fake gRIBI implementation.

func New

func New(s *grpc.Server, gClient gpb.GNMIClient, target string, root *oc.Root, sysribAddr string, opts ...server.ServerOpt) (*Server, error)

New returns a new fake gRIBI server.

- s is the gRPC server on which the reference gRIBI service will be installed. - root, if specified, will be used to populate connected routes into the RIB manager. Note this is intended to be used for unit/standalone device testing.

  • opts, if specified, will be used to control the underlying gRIBI server's behaviours.

Jump to

Keyboard shortcuts

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