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

NSO5.5 failes to create OpenConf-Netconf NED

saumya003
Level 1
Level 1

Hello all,

I have NSO5.5 in GCP VM installed for experiments purpose.

I have ofcourse, some netsim devices on conventional CLI NEDs, which are pinging and connecting.

I am trying to create/compile OpenConfig-Netconf NED and facing some issues.

Situation is...

1- I downloaded OpenConfig folders/files from Openconfig github.

2- Manually moved all the YANG files of all the models into the 'yang' folder in the Openconfig NED 'package' folder.

3- made a single .spec.yml file by copy pasting all the contents from all those files from all models.

4- trying to run 'make' command and getting error as below.

............................

xxxxxxxxx --- usual text --- xxxxxxxxx

yang/openconfig-if-tunnel.fxs yang/openconfig-if-tunnel.yang

openconfig-interfaces not found

openconfig-extensions not found

openconfig-inet-types not found

openconfig-if-ip not found

..............................

 

Although all these files are present in the yaml folder.

Any pointers, help please ?

Regards

1 Accepted Solution

Accepted Solutions

Nabsch
Spotlight
Spotlight

Hello,

 

I am using NSO 5.5.4. 

 

I use this repo  to get  the Yang file. 

I started by cloning the repo then I copy all the yang file to a new directory by using this command 

find release/models/ -name "*.yang"  -exec cp "{}" $HOME/openconfig-yang/  \;

Then after i try to generate a netconf ned  using this command

 ncs-make-package  --no-java  --no-python --no-netsim  --netconf-ned $HOME/openconfig-yang/ openconfig-ned

 

 

I got two error related to some missing yang file which are ietf-interfaces.yang and iana-if-type@2021-06-21.yang.  I took the two module from this repo 

 

Then i compiled the ned i got several warning but the compilation works fine and did  a package reload

 

 

admin@ncs# packages r
reload-result {
    package openconfig-ned-nc-1.0
    result true
}
reload-result {
    package rest-api-explorer
    result true
}
admin@ncs#

 

If needed i can upload the NED Package that i generated.

 

 

 

View solution in original post

2 Replies 2

Nabsch
Spotlight
Spotlight

Hello,

 

I am using NSO 5.5.4. 

 

I use this repo  to get  the Yang file. 

I started by cloning the repo then I copy all the yang file to a new directory by using this command 

find release/models/ -name "*.yang"  -exec cp "{}" $HOME/openconfig-yang/  \;

Then after i try to generate a netconf ned  using this command

 ncs-make-package  --no-java  --no-python --no-netsim  --netconf-ned $HOME/openconfig-yang/ openconfig-ned

 

 

I got two error related to some missing yang file which are ietf-interfaces.yang and iana-if-type@2021-06-21.yang.  I took the two module from this repo 

 

Then i compiled the ned i got several warning but the compilation works fine and did  a package reload

 

 

admin@ncs# packages r
reload-result {
    package openconfig-ned-nc-1.0
    result true
}
reload-result {
    package rest-api-explorer
    result true
}
admin@ncs#

 

If needed i can upload the NED Package that i generated.

 

 

 

Thank you,, it worked smooth, as you explained.

Except few problems...

1- missing ietf-interfaces.yang and...

2- yang/ietf-interfaces.yang:15: error: module 'tailf-ncs' not found
make: *** [Makefile:35: ncsc-out/.done] Error 1

It compiled/package-reload smoothly.

 

Thanks for this.