Documentation
¶
Overview ¶
Package yangentry contains high-level helpers for using yang.Entry objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse takes a list of either module/submodule names or .yang file paths, and a list of include paths. It runs the yang parser on the YANG files by searching for them in the include paths or in the current directory, returning a slice of yang.Entry pointers which represent the parsed top level modules. It also returns a list of errors encountered while parsing, if any.
func ParseWithOptions ¶ added in v1.6.3
func ParseWithOptions(yangfiles, path []string, parseOptions yang.Options) (map[string]*yang.Entry, []error)
ParseWithOptions takes a list of either module/submodule names or .yang file paths, a list of include paths, and a set of parse options. It configures the yang parser with the specified parse options and runs it on the YANG files by searching for them in the include paths or in the current directory, returning a slice of yang.Entry pointers which represent the parsed top level modules. It also returns a list of errors encountered while parsing, if any.
Types ¶
This section is empty.