mbj4668 / pyang

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

Added enumerations to flatten output and fixed leafref resolution #781

Closed MikeJames15 closed 2 years ago

MikeJames15 commented 2 years ago

Added --flatten-primitive-enums and --flatten-enums-delimiter switches.

--flatten-primitive-enums adds a field to the output which for leaves that have a primitive type of enumeration, will contain the possible values of that enumeration. The values in this list will be separated by the character provided in --flatten-enums-delimiter

Added tests and updated man pages.