Table of Contents

Class GnmiUtils

Namespace
Skyline.DataMiner.DataSources.OpenConfig.Gnmi.Utils
Assembly
Skyline.DataMiner.DataSources.OpenConfig.Gnmi.dll

Some utilities to parse or format gNMI items.

public static class GnmiUtils
Inheritance
GnmiUtils

Methods

ConvertPathElemToString(PathElem[], bool)

Converts a gNMI PathElem object into a path string.

ConvertPathElemToStringLimited(PathElem[], int, bool)

Converts a limited gNMI PathElem object into a path string.

ConvertPathToString(Path, Path, bool)

Converts two gNMI Path objects into a single path string.

ConvertPathToString(Path, bool)

Converts a gNMI Path object into a path string.

FindLastKeyOccurrenceInPath(PathElem[])

Finds the last occurrence of a key in a certain path. A path should typically only contain one key but in case there are multiple, it will return the one of the deepest child node.

GetValueByCase(TypedValue)

Given a gNMI TypedValue, will return the appropriate object type with the parsed value.

MergePathElems(Path, Path)

Merges two Paths into one PathElem collection.

ParsePath(string)

Converts a path as string into a gNMI path.

ParsePaths(IEnumerable<string>)

Parses the provided string paths into gNMI Path objects.

TryRemoveRootPathElements(Path, PathElem[], out string, out PathElem[])

Removes the root path from the full path.