Skip to content

gp-scorpius/yang2cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yang2cpp

Script to conver YANG models to C++ Class.

Requirements

What's alerady done

  • Module parsing
  • Container parsing
  • Single-key list parsing
  • Augment parsing
  • Leaf parsing

TODO List

Please refer to Issues

How to use

# ./yang2cpp.py --help
usage: yang2cpp.py [-h] [-o PREFIX] [-d DIR] [-p PATH1:PATH2] input

Convert a given YANG model in a C++ classes model.

positional arguments:
 input                 YANG file to be converted.

optional arguments:
 -h, --help            show this help message and exit
 -o PREFIX, --output PREFIX
                       Output prefix. Two files (a .h and a .cc) will be
                       created based on this prefix. The default is the YANG
                       module name.
 -d DIR, --output-directory DIR
                       Path to directory where the output files will be
                       placed in. The default is the current directory.
 -p PATH1:PATH2, --path PATH1:PATH2
                       path is a colon (:) separated list of directories to
                       search for import

About

YANG to Class Converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages