load

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checker

func Checker(config *ConfigGnmiSimple) error

Checker - check everything is within bounds

func Clear

func Clear()

Clear - reset the config - needed for tests

func ToGnmiSetRequest

func ToGnmiSetRequest(sr *ConfigGnmiSimple) *gnmi.SetRequest

ToGnmiSetRequest -- convert an internal SetRequest to Gnmi format

Types

type ConfigGnmi

type ConfigGnmi struct {
	SetRequest gnmi.SetRequest `yaml:"setrequest"`
}

ConfigGnmi - a wrapper around a gnmi SetRequest

type ConfigGnmiSimple

type ConfigGnmiSimple struct {
	SetRequest SetRequest
}

ConfigGnmiSimple - a wrapper around a simple native SetRequest

func GetConfigGnmi

func GetConfigGnmi(location string) (ConfigGnmiSimple, error)

GetConfigGnmi gets the onos-config configuration

type Extension

type Extension struct {
	ID    int
	Value string
}

Extension - a simplified version of gnmi.Extension

type SetRequest

type SetRequest struct {
	Prefix  *gnmi.Path
	Delete  []*gnmi.Path
	Replace []*Update
	Update  []*Update
	// Extension messages associated with the SetRequest. See the
	// gNMI extension specification for further definition.
	Extension []*Extension
}

SetRequest - this is a simplification of the gnmi.SetRequest that can be used when forming configurations - it cuts out all of the unused parts like XXX_ and so results in a smaller file

type TypedValue

type TypedValue struct {
	StringValue   *gnmi.TypedValue_StringVal
	IntValue      *gnmi.TypedValue_IntVal
	UIntValue     *gnmi.TypedValue_UintVal
	BoolValue     *gnmi.TypedValue_BoolVal
	BytesValue    *gnmi.TypedValue_BytesVal
	FloatValue    *gnmi.TypedValue_FloatVal
	DecimalValue  *gnmi.TypedValue_DecimalVal
	LeaflistValue *gnmi.TypedValue_LeaflistVal
	AnyValue      *gnmi.TypedValue_AnyVal
	JSONValue     *gnmi.TypedValue_JsonVal
	JSONIetfValue *gnmi.TypedValue_JsonIetfVal
	ASCIIValue    *gnmi.TypedValue_AsciiVal
	ProtoBytes    *gnmi.TypedValue_ProtoBytes
}

TypedValue - a simplified version of the gnmi.TypedValue

type Update

type Update struct {
	Path       *gnmi.Path
	Val        *TypedValue
	Duplicates uint32
}

Update - a simplified version of the gnmi.Update

Jump to

Keyboard shortcuts

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