Documentation ¶
Overview ¶
Package gnmiutil contains helper functions related to gNMI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GNMIFullPath ¶
GNMIFullPath builds the full path from the prefix and path.
func GNMIPathEquals ¶
GNMIPathEquals checks whether the two given gNMI path equal to each other.
func ToPbVal ¶
func ToPbVal(stringVal string) (*pb.TypedValue, error)
ToPbVal convert string to TypedValue defined in gNMI proto. Supported types:
Integer: "1", "2" Float: "1.5", "2.4" String: "abc", "defg" Boolean: "true", "false" IETF JSON from file: "@ap_config.json"
func ValEqual ¶
func ValEqual(gnmiPath *pb.Path, actual *pb.TypedValue, expected *pb.TypedValue) error
ValEqual checks whether the given two input value equal. It returns error if values are not equal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.