stratum

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package stratum contains utilities to interact with Stratum devices via gNMI and P4Runtime

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GNMI

type GNMI struct {
	ID topo.ID

	Client  gnmi.GNMIClient
	Context context.Context
	// contains filtered or unexported fields
}

GNMI is a connection context to a Stratum gNMI endpoint derived from onos.topo.GNMIEndpoint aspect

func NewGNMI

func NewGNMI(object *topo.Object, connectImmediately bool) (*GNMI, error)

NewGNMI creates a new stratum gNMI connection context from the specified topo entity using its onos.topo.GNMIServer aspect

func (*GNMI) Connect

func (d *GNMI) Connect() error

Connect establishes connection to the gNMI server

func (*GNMI) Disconnect

func (d *GNMI) Disconnect() error

Disconnect terminates the gNMI connection

Jump to

Keyboard shortcuts

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