parser

package
v0.4.73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainerEntry

func CreateContainerEntry(e *yang.Entry, next, prev *container.Container) *container.Entry

func DeletePath added in v0.4.65

func DeletePath(x1 interface{}, path *config.Path, idx int) interface{}

func GetTypeKind

func GetTypeKind(e *yang.Entry) string

func GetTypeName

func GetTypeName(e *yang.Entry) string

func GnmiPathToName

func GnmiPathToName(path *config.Path) string

func GnmiPathToXPath

func GnmiPathToXPath(path *config.Path, keys bool) *string

func InitializePathElem

func InitializePathElem(e *yang.Entry) *config.PathElem

func InsertElemInPath

func InsertElemInPath(path *config.Path, name, key string) *config.Path

func ProcessLeafRef

func ProcessLeafRef(e *yang.Entry, resfullPath string, activeResPath *config.Path) (*config.Path, *config.Path, bool)

ProcessLeafRef processes the leafref and returns if a leafref localPath, remotePath and if the leafRef is local or external to the resource

func RemoveFirstEntry

func RemoveFirstEntry(s string) string

RemoveFirstEntry removes the first entry of the xpath, so it trims the first element of the /

func RemoveHierarchicalKeys

func RemoveHierarchicalKeys(d []byte, hids []string) ([]byte, error)

RemoveHierarchicalKeys removes the hierarchical keys from the data

func TransformPathAsRelative2Resource

func TransformPathAsRelative2Resource(localPath, activeResPath *config.Path) *config.Path

func TransformPathToLeafRefPath

func TransformPathToLeafRefPath(path *config.Path) *config.Path

for a leafRef path the last entry of the name should be a key in the previous element

func XpathToGnmiPath

func XpathToGnmiPath(p string, offset int) (path *config.Path)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL