Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 814 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 814 Bytes

oc-pyang

OpenConfig plugins for pyang

Plugins for the pyang YANG parser / compiler for working with OpenConfig and other YANG data models.

Contents

  • openconfig.py - pyang plugin to check OpenConfig YANG style guidelines
  • yangpath.py - pyang plugin to list and analyze schema paths in YANG modules

Using the plugins

  1. Install pyang (plugins have been developed and tested for pyang v1.6)

  2. Clone / download this repository

  3. pyang --plugindir <.../path/to/repo/plugins> <options> <YANG modules>

  • pyang --plugindir <.../path/to/repo/plugins> --help to see options

Note: these files are not part of any official Google product