Documentation ¶
Index ¶
- func AppendPathElem2GnmiPath(path *gnmi.Path, name string, keys []string) *gnmi.Path
- func DeepCopyGnmiPath(in *gnmi.Path) *gnmi.Path
- func GetTypeKind(e *yang.Entry) string
- func GetTypeName(e *yang.Entry) string
- func GnmiPath2XPath(path *gnmi.Path, keys bool) *string
- func ProcessLeafRefGnmi(e *yang.Entry, resfullPath string, activeResPath *gnmi.Path) (*gnmi.Path, *gnmi.Path, bool)
- func RemoveFirstEntryFromXpath(s string) string
- func TransformGnmiPathAsRelative2Resource(localPath, activeResPath *gnmi.Path) *gnmi.Path
- func Xpath2GnmiPath(xpath string, offset int) (path *gnmi.Path)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendPathElem2GnmiPath ¶
AppendPathElem2GnmiPath adds a pathElem to the config gnmi path
func GetTypeKind ¶
GetTypeKind returns a string of the kind of the yang entry
func GetTypeName ¶
GetypeName return a string of the type of the yang entry
func GnmiPath2XPath ¶
GnmiPath2XPath converts a gnmi path with or without keys to a string pointer
func ProcessLeafRefGnmi ¶
func ProcessLeafRefGnmi(e *yang.Entry, resfullPath string, activeResPath *gnmi.Path) (*gnmi.Path, *gnmi.Path, bool)
ProcessLeafRef processes the leafref and returns if this is a leafref and if so the leafrefs local and remote path if the leafRef is local or external to the resource
func RemoveFirstEntryFromXpath ¶
RemoveFirstEntryFromXpath removes the first entry of the xpath, so it trims the first element of the /
func TransformGnmiPathAsRelative2Resource ¶
TransformPathAsRelative2Resource returns a relative path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.