southbound

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: Apache-2.0 Imports: 15 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

func SetChassisConfig added in v0.2.6

func SetChassisConfig(object *topo.Object, config []byte) error

SetChassisConfig sets the chassis configuration on the device via gNMI

Types

type StratumP4

type StratumP4 struct {
	ID         string
	DeviceID   uint64
	ElectionID *p4api.Uint128
	Context    context.Context
	RoleName   string
	// 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