cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1161
Views
0
Helpful
2
Replies

pyang error: bad value "1.1" (should be version)

BasharAziz
Level 1
Level 1

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

 

2 Replies 2

BasharAziz
Level 1
Level 1
 

Bashar,

 

Can you please show your .yang file content