cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
586
Views
5
Helpful
1
Replies

Updating Pyang Inside NSO

Priya Chaturvedi
Cisco Employee
Cisco Employee

Hi there,

 

I am trying to use pyang for YANG module manipulation but the NSO container that I am using has pyang 1.5 which is creating issues for me as my YANG modules have version 1.1. 

 

That's why I would like to upgrade the Pyang inside NSO. Will that cause any side-effects?

1 Reply 1

u.avsec
Spotlight
Spotlight

Not really as long as you switch NSO over to the new pyang version.

1. Install new pyang with pip

2. go to /opt/ncs/ncs-X.X.X.X/bin (NSO install dir) move pyang bin NSO comes with away and softlink pyang bin you installed with pip

 

In my particular case it looks like this:

root@3bb7bf86aa81:/opt/ncs/ncs-4.7.10.1/bin# ls -la pyang
lrwxrwxrwx. 1 root root 20 Jan  4 18:17 pyang -> /usr/local/bin/pyang