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

Package reload error in drned examiner

sparrow109
Level 1
Level 1

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!

1 Accepted Solution

Accepted Solutions

mvolf
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

mvolf
Cisco Employee
Cisco Employee

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

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?