11-12-2021 03:40 AM
I met below error when reload package drned examiner:
admin@ncs# packages reload
>>> System upgrade is starting.
>>> Sessions in configure mode must exit to operational mode.
>>> No configuration changes can be performed until upgrade has completed.
>>> System upgrade has completed successfully.
reload-result {
package drned-xmnr
result false
info ModuleNotFoundError: No module named 'drned_xmnr.namespaces.drned_xmnr_ns'
}
[root@localhost yang]# pwd
/root/ncs-run/packages/drned-xmnr/src/yang
[root@localhost yang]# ls
drned-xmnr.yang
[root@localhost yang]# vi drned-xmnr.yang
module drned-xmnr {
namespace "http://cisco.com/ns/drned-xmnr";
prefix drned-xmnr;
import tailf-common {
prefix tailf;
}
import tailf-ncs {
prefix ncs;
}
Did I miss some files for the package?
Thanks!
Solved! Go to Solution.
11-12-2021 06:52 AM
The package needs to be compiled first, something like
make -C packages/drned-xmnr/src all
or, since you need to provide PYTHONPATH pointing to NSO’s PyAPI,
env PYTHONPATH=$NCS_DIR/src/ncs/pyapi make -C packages/drned-xmnr/src all
By the way, this is not the best forum for questions about drned-xmnr. The package is somewhat unusual in that though it is a NSO package, its typical user is a device vendor who wants to verify its device’s compatibility with NSO. Is that your case?
Regards,
Martin
11-12-2021 06:52 AM
The package needs to be compiled first, something like
make -C packages/drned-xmnr/src all
or, since you need to provide PYTHONPATH pointing to NSO’s PyAPI,
env PYTHONPATH=$NCS_DIR/src/ncs/pyapi make -C packages/drned-xmnr/src all
By the way, this is not the best forum for questions about drned-xmnr. The package is somewhat unusual in that though it is a NSO package, its typical user is a device vendor who wants to verify its device’s compatibility with NSO. Is that your case?
Regards,
Martin
11-15-2021 06:15 PM
Yes, it's the case we have now.
Thanks a lot for your info, we reset the env, the package could be reload.
I want to capture the communication logs between our device and NSO, can it be captured by the tool?
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