mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
535 stars 344 forks source link

Pyang Plugin #734

Open MeherchandPN opened 3 years ago

MeherchandPN commented 3 years ago

How to make a customised plugin in pyang which and be like this "pyang --customplugin example1.yang example2.yang" and how to take more than one file as argument in that particular plugin? Could some one help me with the procedure for making a plugin and invoke it?

fredgan commented 3 years ago

Hi, If you want to write a plugin, please refer to pyangbind, which is a pyang plugin.

mbj4668 commented 3 years ago

There are also some plugins in pyang/plugins.

MeherchandPN commented 3 years ago

Thank you! I have one more question: In some yang files the leaf might have extra parameters like range,pattern etc i want to be able to extract them and display. Can it be done in tree.py plugin as i want to display those extra parameters too?