southbound

package
v0.2.5 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: 14 Imported by: 0

Documentation

Overview

Package southbound contains code for updating P4 pipeline and chassis configuration on Stratum devices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StratumGNMI added in v0.2.4

type StratumGNMI struct {
	ID topo.ID
	// contains filtered or unexported fields
}

StratumGNMI is ab abstraction of a device with gNMI endpoint

func NewStratumGNMI added in v0.2.4

func NewStratumGNMI(object *topo.Object) (*StratumGNMI, error)

NewStratumGNMI creates a new stratum gNMI device descriptor from the specified topo entity

func (*StratumGNMI) Connect added in v0.2.4

func (d *StratumGNMI) Connect() error

Connect establishes connection to the gNMI server

func (*StratumGNMI) Disconnect added in v0.2.4

func (d *StratumGNMI) Disconnect() error

Disconnect terminates the gNMI connection

func (*StratumGNMI) SetChassisConfig added in v0.2.4

func (d *StratumGNMI) SetChassisConfig(config []byte) error

SetChassisConfig sets the chassis configuration on the device using previously established connection

type StratumP4

type StratumP4 struct {
	ID topo.ID
	// contains filtered or unexported fields
}

StratumP4 is ab abstraction of a device with P4Runtime endpoint

func NewStratumP4

func NewStratumP4(object *topo.Object, roleName string) (*StratumP4, error)

NewStratumP4 creates a new stratum P4 device descriptor from the specified topo entity

func (*StratumP4) Connect

func (d *StratumP4) Connect() error

Connect establishes connection to the P4Runtime server

func (*StratumP4) Disconnect

func (d *StratumP4) Disconnect() error

Disconnect terminates the P4 message stream

func (*StratumP4) ReconcilePipelineConfig

func (d *StratumP4) ReconcilePipelineConfig(info []byte, binary []byte, cookie uint64) (uint64, error)

ReconcilePipelineConfig makes sure that the device has the given P4 pipeline configuration applied

Jump to

Keyboard shortcuts

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