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
- 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.
- ConvertPathToStringLimited(Path, int, bool)
Converts a limited gNMI PathElem object into a path string.
- ConvertSubscribeResponseIntoGnmiResponseValues(SubscribeResponse)
Converts a gNMI Gnmi.SubscribeResponse into a format that gets forwarded to the consumer.
- FindLastKeyOccurrenceInPath(Path)
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, bool)
Given a gNMI TypedValue, will return the appropriate object type with the parsed value.
- HasCommonPathElements(Path, Path)
Validates if the entity path and the data path have common path elements.
- MergePaths(Path, Path)
Merges two paths into one path.
- ParsePath(string)
Converts a path as string into a gNMI path.
- ParsePaths(IEnumerable<string>)
Parses the provided string paths into gNMI Path objects.
- RemoveCommonPathElements(Path, Path, bool)
Removes the entity path from the data path.
- TryGetPathLevel(Path, Path, out int)
Verifies if the fullPath starts with the prefixPath and returns the index position where the fullPath further continues.