r45 - 2015-11-26 - 11:14:04 - MartinBjoerklundYou are here: TWiki >  Main Web > YangTools


Validators, compilers and translators

  • The latest version of libsmi contains a YANG output driver for the smidump tool. It generates YANG modules from SMI/SMIv2 MIBs.

  • pyang (manual page) is an extensible YANG validator written in Python. It can be used standalone as a validator of YANG modules, or to generate YIN, YANG, DSDL and XSD from YANG and YIN. It can also be integrated in other applications, which can, for example, generate vendor-specific stub code. Validation of instance XML documents (datastore contents or NETCONF PDUs) using pyang is explained in DSDLMappingTutorial and yang2dsdl manual page.

  • pyang can also be used to generate UML diagrams from YANG data models. See UML Output Example.

  • jYang is a YANG validator and translator written in Java.

YANG Editing tools

  • yang-mode.el is an emacs mode for editing YANG files. RFC 6020 compliant. Requires cc-mode 5.30 or later.
    NOTE With emacs 23, you need to do (for details, see the comment in the file):
    • In .emacs, use autoload instead of require (autoload 'yang-mode "yang-mode" "Major mode for editing YANG models." t)
    • Possibly delete cc-mode.elc

  • yang.vim is a VIM syntax file for editing YANG files. RFC 6020 compliant.

Other tools

  • rfcstrip is a program that extracts YANG modules, MIB modules, and other marked code components from RFCs and Internet-Drafts.

  • xym is another tool to extract YANG models from RFCs.

  • RELAX NG schema for YIN
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r49 | r47 < r46 < r45 < r44 | More topic actions...
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback