yangentry

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

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

func Parse(yangfiles, path []string) (map[string]*yang.Entry, []error)

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.

Jump to

Keyboard shortcuts

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