stratum

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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 string

	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(id string, endpoint *topo.Endpoint, connectImmediately bool) (*GNMI, error)

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

func NewStratumGNMI added in v0.1.16

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

NewStratumGNMI creates a new stratum gNMI connection context from the specified topo entity using its onos.topo.StratumAgents aspect GNMIEndpoint field

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