Table of Contents

Method ConvertPathToString

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

ConvertPathToString(Path, Path, bool)

Converts two gNMI Path objects into a single path string.

public static string ConvertPathToString(Path prefix, Path path, bool doIncludeKeys = true)

Parameters

prefix Path

The first path acting as a prefix.

path Path

The second path to append after the prefix.

doIncludeKeys bool

Includes keys in the output when a path contains those.

Returns

string

A path string containing the path node names separated by a forward slash '/'.

ConvertPathToString(Path, bool)

Converts a gNMI Path object into a path string.

public static string ConvertPathToString(Path path, bool doIncludeKeys = true)

Parameters

path Path

The path to format.

doIncludeKeys bool

Includes keys in the output when a path contains those.

Returns

string

A path string containing the path node names separated by a forward slash '/'.