Closed atarlov closed 2 years ago
This is Not YDK issue!
The issue appears due to bug in pyang, which is present even in the latest version 2.5.0.
Hi @ygorelik, I see the new ydk-gen 0.8.6 is GA with pyang version upgraded to 2.5.0. (https://community.cisco.com/t5/yang-tools/ydk-0-8-6-is-now-generally-available/td-p/4477882). In that case probably that new version will not help
The pyang upgrade targeted capability for YDK to process and generate API for YANG-1.1 modules. Not all the features of RFC-7950 though were implemented in this release. In order to have full set of YANG-1.1 features the YDK must be upgraded to version 0.9.0.1 or 0.9.1 (coming soon).
This is Not YDK issue!
The issue appears due to https://github.com/mbj4668/pyang/issues/729 in pyang, which is present even in the latest version 2.5.0.
Expected Behavior
I want to generate Cisco IOS-XE 1711 python bundle. The files I am using are from the Yang repository. I'm interested in the BGP configuration.
Current Behavior
With the provided yang files the generation fails. Part of the Logs are attached.
When I remove the Cisco-IOS-XE-BGP.yang then it succeeds. I compared the latest working BGP module (v16101) and (v1711) and it seems that in the newer ifaces are part of the module.
When I run the pyang on the module it gives me errors for those interfaces. pyang Cisco-IOS-XE-bgp.yang
Steps to Reproduce
Logs
System Information
Python 3.6.8 Pyang 1.6 CentOS Linux release 7.7.1908