03-30-2020 05:32 AM
Hi everybody,
I succeed to generate a NED for my netconf device with the Netconf NED builder (https://info.tail-f.com/hubfs/Whitepapers/Tail-f%20NSO%20interop%20User%20Guide%20V2%20Rev%20H%202019-11-20.pdf), and everything is fine until I notice that there is no netsim directory inside the NED package.
I want to use Netsim in order to work with my real device and some others virtual devices because I only have 1 router of this type.
Do you know how to generate a netsim directory for my NED ?
Solved! Go to Solution.
03-30-2020 08:25 AM
03-30-2020 08:25 AM
03-31-2020 05:39 AM
Hi vleijon,
The command make-development-ned create a package with a netsim directory, that's great !
But it does not build it and I don't know exactly how to do it.
There is a Makefile in the src directory but there is many errors at the compilation, where build-ned show no errors.
Is there a command in NSO to build this package or do I need to debug all the yang file by myself and use the Makefile ?
03-31-2020 06:56 AM
03-31-2020 08:05 AM
Yes, when try to compile manually, I have many warnings like this :
warning: The 'must' expression should have a tailf:dependency. If is doesn't, it will be checked for every commit.
Warning: the following symbols have been suppressed due to a conflict with an enum or bit with the same mapped name but a different value: 'consoleCommand', 'externalCallControlAgent', 'externalNmsApp', 'externalRadiusServer', 'internalCallControlApp'.
At the end, I got this :
Makefile:51: recipe for target 'ncsc-out/.done' failed
make: *** [ncsc-out/.done] Error 1
And when I tried to add it to NSO with packages reload after the compilation, I have this error for many files :
.class file for com/example/IR1101/namespaces/BRIDGEMIB.java has not been found
03-31-2020 08:36 AM
04-02-2020 01:24 AM
04-01-2020 03:52 AM
hi,
The Makefile by default does not run in verbose mode. If you run the compiler in verbose mode, you will get more info on what is failing:
Try to run this command in your NED "src" folder:
ncsc --verbose --ncs-device-dir ncsc-out --ncs-device-type netconf --yangpath yang/ --ncs-compile-bundle yang --ncs-ned-id test:test
Regards,
Roque
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