mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
528 stars 342 forks source link

leaf-list multiple defaults are not supported (throwing error) #870

Open kirankotari opened 12 months ago

kirankotari commented 12 months ago

09_46_12

In the above image I have a yang model with leaf-list with multiple defaults. when I tried to use pyang -f format its throwing following errors

tailf-ncs-cluster.yang:224: error: unexpected keyword "default"
tailf-ncs-cluster.yang:225: error: unexpected keyword "default"
tailf-ncs-cluster.yang:226: error: unexpected keyword "default"
tailf-ncs-cluster.yang:227: error: unexpected keyword "default"
tailf-ncs-cluster.yang:228: error: unexpected keyword "default"

similar merged PR: https://github.com/mbj4668/pyang/issues/756

OS: Mac 13.4.1 pyang 2.5.3

mbj4668 commented 8 months ago

please provide an example module and show the exact command you use to reproduce this