OpenConfig plugins for the pyang validator
Clone or download
aashaikh Fix bug in docs plugin. (#21)
* (M) openconfig_pyang/plugins/yangdoc.py
    - Add check for empty description in type statements
Latest commit 8e7e2d1 Aug 16, 2018

README.md

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