cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
820
Views
5
Helpful
2
Replies

YANG

Hello guys,

I am trying to implement the :


First create a package called 'host' from the YANG file we have

$ ncs-make-package --netconf-ned . host


We now need to build the YANG file in the package

$ ( cd host/src && make )

 

but i got this error :

ncs-make-package: error: failed to copy YANG file(s)

Try ncs-make-package --help to get usage text

 

Could anyone help, please?

 

1 Accepted Solution

Accepted Solutions

u.avsec
Spotlight
Spotlight

You have to pre-provide the yang model when making the ned.

It looks like you just ran the

ncs-make-package --netconf-ned . host

which searches the current dir for yang files, can't find any and then complain.

 

You should visit NSO install dir and find 'doc' dir in which a pdf guide called nso_developement is. Most of the stuff is explained there.

 

Also, if you want to build netconf neds directly from netconf devices this might be an interesting thing to look into:

https://github.com/NSO-developer/pioneer

 

View solution in original post

2 Replies 2

u.avsec
Spotlight
Spotlight

You have to pre-provide the yang model when making the ned.

It looks like you just ran the

ncs-make-package --netconf-ned . host

which searches the current dir for yang files, can't find any and then complain.

 

You should visit NSO install dir and find 'doc' dir in which a pdf guide called nso_developement is. Most of the stuff is explained there.

 

Also, if you want to build netconf neds directly from netconf devices this might be an interesting thing to look into:

https://github.com/NSO-developer/pioneer

 

crench92
Spotlight
Spotlight

Depending on the NSO version, you can also use the netconf-ned-builder

 

https://developer.cisco.com/docs/nso/guides/#!nso-5-6-ned-development-netconf-ned-builder/netconf-ned-builder