cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1607
Views
0
Helpful
4
Replies

During package reload getting this below error.Error: /devices/device/device-type/cli/ned-id is not configured

gichanda
Cisco Employee
Cisco Employee

During package reload getting this below error.

Error: /devices/device/device-type/cli/ned-id is not configured

can anyone please suggest what is the root cause of this error ?

4 Replies 4

yfherzog
Cisco Employee
Cisco Employee

Hi,

Any chance you misplaced one of the NEDs, and it's missing from the packages directory?

If you have a CLI device configured in NSO, then it's holding a reference to the NED.

If you try to reload packages while the NED is not there, then this reference cannot exist anymore, as the NED is not there anymore. As the ned-id parameter is mandatory when you set the device type to CLI, then you are essentially trying to create an illegal state in CDB, and this is why reload fails.

If you wanted this NED removed, then you'll have to remove all devices configured to use this NED before reloading packages.

Yftach

Thanks Yftach for the quick reply.I will try to check if any device is there without neds.

Thanks

gitanjali

Can you please help me for how to check this. 

Hello,

 

You get this error message because you have a NED  that still used by some device and trying to remove it. If you want to delete a NED you have to make sure that the ned isn't used by any device

 

Here an example

 

I tried to remove the LSA NED cisco-nso-nc-4.7

 

admin@ncs# packages reload
Error: The following modules will be deleted by upgrade:
cisco-nso-nc-4.7: tailf-kicker
cisco-nso-nc-4.7: tailf-ncs
cisco-nso-nc-4.7: tailf-ncs-alarms
cisco-nso-nc-4.7: tailf-ncs-ned
cisco-nso-nc-4.7: tailf-ncs-progress
cisco-nso-nc-4.7: tailf-ncs-scheduler
cisco-nso-nc-4.7: tailf-progress
cisco-nso-nc-4.7: tailf-common-monitoring
cisco-nso-nc-4.7: tailf-ncs-monitoring
cisco-nso-nc-4.7: ietf-netconf-acm
cisco-nso-nc-4.7: ietf-yang-library
cisco-nso-nc-4.7: cisco-nso-nc
cisco-nso-nc-4.7: cisco-nso-nc-4.7

admin@ncs# packages reload force

>>> 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 been cancelled.
Error: /devices/device[name='rfs-4.7.11']/device-type/netconf/ned-id is not configured

admin@ncs# show devices list | include "NAME|cisco-nso-nc-4.7"
NAME              ADDRESS    DESCRIPTION  NED ID               ADMIN STATE
rfs-4.7.11        localhost  -            cisco-nso-nc-4.7     unlocked

When i try to perform a package reload NSO already reported that i am removing a package and  i need to do a package reload force then when i did a package reload he complains because i am trying to remove a ned that already used by a NED.The best solution is to check which ned is used by the device then get the list of all the device using this NED. If you are 100% sure that you want to delete this ned you have to migrate to another NED that's already loaded in NSO.

 

admin@ncs# show running-config devices device rfs-4.7.11 device-type
devices device rfs-4.7.11
 device-type netconf ned-id cisco-nso-nc-4.7
!
admin@ncs# show devices list | include "NAME|cisco-nso-nc-4.7"
NAME              ADDRESS    DESCRIPTION  NED ID               ADMIN STATE
rfs-4.7.11        localhost  -            cisco-nso-nc-4.7     unlocked

If you want to remove the device and the NED. You have first to remove the device using this NED then do a package reload force

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: