01-28-2021 04:36 AM - edited 01-28-2021 05:31 AM
Hi,
As I understand, when I source ncsrc then it inserts pyang version 1.5 in my path and won't be the use the one I had installed on my system. I'm still facing the same errors every time when executing pyang :
❯ pyang test01.yang
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/ietf-yang-schema-mount.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/ietf-yang-schema-mount.yang:9: error: unexpected keyword "reference"
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/ietf-yang-schema-mount.yang:15: error: unexpected keyword "reference"
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-cluster.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-common.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-compliance.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-customers.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-devices.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-devices.yang:3807: error: XPath function "derived-from-or-self" is not defined in the XPath context
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-devices.yang:4015: error: XPath function "derived-from-or-self" is not defined in the XPath context
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-java-vm.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-log.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-packages.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-plan.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-python-vm.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-service-progress-monitoring.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-services.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-smart-license.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-snmp-notification-receiver.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-software.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs-ssh.yang:2: error: bad value "1.1" (should be version)
/Users/dev_ws/nso-5.3.2.1/src/ncs/yang/tailf-ncs.yang:2: error: bad value "1.1" (should be version)
~/nso-run/packages/test01/src/yang
❯ which pyang
/Users/dev_ws/nso-5.3.2.1/bin/pyang
pyang -version
pyang 1.5
Regards,
Bashar
01-28-2021 05:44 AM
02-11-2021 08:04 AM
Bashar,
Can you please show your .yang file content
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide