pyang icon indicating copy to clipboard operation
pyang copied to clipboard

Pyang Plugin

Open MeherchandPN opened this issue 4 years ago • 3 comments

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?

MeherchandPN avatar Mar 09 '21 06:03 MeherchandPN

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

fredgan avatar Mar 12 '21 07:03 fredgan

There are also some plugins in pyang/plugins.

mbj4668 avatar Mar 15 '21 11:03 mbj4668

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?

MeherchandPN avatar Mar 23 '21 05:03 MeherchandPN