01-26-2022 05:09 AM
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
Solved! Go to Solution.
01-26-2022 03:31 PM - edited 01-27-2022 04:58 AM
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.
01-26-2022 03:31 PM - edited 01-27-2022 04:58 AM
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.
01-27-2022 04:42 AM
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.
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