Documentation ¶
Overview ¶
Program yang parses YANG files, displays errors, and possibly writes something related to the input on output.
Usage: yang [--path DIR] [--format FORMAT] [FORMAT OPTIONS] [MODULE] [FILE ...]
If MODULE is specified (an argument that does not end in .yang), it is taken as the name of the module to display. Any FILEs specified are read, and the tree for MODULE is displayed. If MODULE was not defined in FILEs (or no files were specified), then the file MODULES.yang is read as well. An error is displayed if no definition for MODULE was found.
If MODULE is missing, then all base modules read from the FILEs are displayed. If there are no arguments then standard input is parsed.
If DIR is specified, it is considered a comma separated list of paths to append to the search directory. If DIR appears as DIR/... then DIR and all direct and indirect subdirectories are checked.
FORMAT, which defaults to "tree", specifies the format of output to produce. Use "goyang --help" for a list of available formats.
FORMAT OPTIONS are flags that apply to a specific format. They must follow --format.
THIS PROGRAM IS STILL JUST A DEVELOPMENT TOOL.