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 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 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
Click to show internal directories.
Click to hide internal directories.