Table of Contents

Method TryRemoveRootPathElements

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

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

Removes the root path from the full path.

public static bool TryRemoveRootPathElements(Path rootPath, PathElem[] fullPath, out string lastFoundKey, out PathElem[] cleanPaths)

Parameters

rootPath Path

Root path.

fullPath PathElem[]

Full path.

lastFoundKey string

Last key that was found that was not included in the root path.

cleanPaths PathElem[]

Full path without the root path.

Returns

bool

Boolean indicating if there are items present in the cleanPaths.