Hitting errors while generating ydk model files for xr yang files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2020 10:11 PM - edited 11-16-2020 11:02 PM
We followed the exact procedure mentioned in wiki https://wwwin-github.cisco.com/cafy/cafykit/wiki/YDK-model-updation-in-Cafykit-environment but still hitting errors.
(venv) bash-4.2$ pyang *.yang
Cisco-IOS-XR-config-valid-ccv-oper.yang:11: error: module "Cisco-IOS-XR-config-valid-ccv-oper-sub2" not found in search path
Cisco-IOS-XR-config-valid-ccv-oper.yang:76: error: grouping "CCV-YVE-VALIDATION-FAILURE-ITEM-BAG" not found in module Cisco-IOS-XR-config-valid-ccv-oper
Cisco-IOS-XR-config-valid-ccv-oper.yang:92: error: grouping "CCV-YVE-VALIDATION-FAILURE-ITEM-BAG" not found in module Cisco-IOS-XR-config-valid-ccv-oper
openconfig-interfaces.yang:177: error: openconfig-bfd:interface in the path for subinterface at openconfig-bfd.yang:742 (at openconfig-interfaces.yang:173) is not found
openconfig-interfaces.yang:177: error: openconfig-bfd:interface in the path for subinterface at openconfig-bfd.yang:742 (at openconfig-interfaces.yang:173) is not found
openconfig-interfaces.yang:177: error: openconfig-if-tunnel:interface in the path for subinterface at openconfig-if-tunnel.yang:118 (at openconfig-interfaces.yang:173) is not found
openconfig-interfaces.yang:177: error: openconfig-if-tunnel:interface in the path for subinterface at openconfig-if-tunnel.yang:118 (at openconfig-interfaces.yang:173) is not found
openconfig-interfaces.yang:177: error: openconfig-if-tunnel:interface in the path for subinterface at openconfig-if-tunnel.yang:118 (at openconfig-interfaces.yang:173) is not found
openconfig-interfaces.yang:177: error: openconfig-if-tunnel:interface in the path for subinterface at openconfig-if-tunnel.yang:118 (at openconfig-interfaces.yang:173) is not found
openconfig-interfaces.yang:177: error: openconfig-network-instance:interface in the path for subinterface at openconfig-network-instance.yang:1000 (at openconfig-interfaces.yang:173) is not found
openconfig-interfaces.yang:177: error: openconfig-network-instance:interface in the path for subinterface at openconfig-network-instance.yang:1000 (at openconfig-interfaces.yang:173) is not found
openconfig-interfaces.yang:177: error: openconfig-network-instance:interface in the path for subinterface at openconfig-network-instance.yang:1000 (at openconfig-interfaces.yang:173) is not found
sysdef_datapath.yang:18: error: module "sysdef_ext" not found in search path
tailf-netconf-monitoring.yang:187: error: node ietf-netconf-monitoring::datastores is not found
tailf-netconf-monitoring.yang:201: error: node ietf-netconf-monitoring::datastores is not found
(venv) bash-4.2$ pip freeze
alabaster==0.7.12
Babel==2.8.0
bcrypt==3.2.0
cffi==1.14.3
cryptography==3.1.1
docutils==0.16
enum34==1.1.3
gitdb==0.6.4
GitPython==1.0.1
imagesize==1.2.0
Jinja2==2.11.2
lxml==4.5.2
MarkupSafe==1.1.1
ncclient==0.6.9
paramiko==2.7.2
pyang==1.6
pycparser==2.20
Pygments==2.7.1
PyNaCl==1.4.0
pytz==2020.1
rstr==2.2.6
six==1.15.0
smmap==3.0.4
snowballstemmer==2.0.0
Sphinx==1.4a1
sphinx-rtd-theme==0.1.9
(venv) bash-4.2$
- Labels:
-
YANG Development Kit (YDK)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020 10:42 AM
You need to follow all the pyang errors and resolve them before you build the bundle (model API), meaning add all missing modules to the YANG models directory, and resolve all the errors in the models. Alternatively you can reduce number of YANG models in directory or limit set of files in the bundle profile. In both cases you need to have clean model check before you can build the bundle.
YDK Solutions
