New Yang models published by IETF have yang-version 1.1 nowadays.
However yang-explorer returns following compile error for them.
2: error: bad value "1.1" (should be version)
Most of them compile OK by modifying version 1.1 to 1, but some fail if they include new keywords like "require-instance". For detail, please refer to "1.1. Summary of Changes from RFC 6020" of https://tools.ietf.org/html/draft-ietf-netmod-rfc6020bis-12
Hi
I have faced the same problem. It depends on the pyang version that yang-explorer uses. Take a look at /v/bin/ and run /v/bin/pyang --version. In my case it was 1.6. This version doesn't support YANG 1.1. So I have remove this old version with a symbolic link to my more udpated pyang version and now I can load YANG 1.1 modules into yang-explorer.
Hope this can help as a workaround.
regards
fabio
New Yang models published by IETF have yang-version 1.1 nowadays. However yang-explorer returns following compile error for them.
2: error: bad value "1.1" (should be version)
Most of them compile OK by modifying version 1.1 to 1, but some fail if they include new keywords like "require-instance". For detail, please refer to "1.1. Summary of Changes from RFC 6020" of https://tools.ietf.org/html/draft-ietf-netmod-rfc6020bis-12