cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
752
Views
10
Helpful
2
Replies

old netsim device with new NED

yli7
Cisco Employee
Cisco Employee

Is it still required to re-create a netsim device if the associated NED is upgraded? Is there any shortcut/tool to get the existing netsim devices "updated" with new NED without having to delete it and recreate and sync-to?

 

thanks!

2 Replies 2

vleijon
Cisco Employee
Cisco Employee
You almost always have to recreate it, and there is no simple way to do it.

You can try manually copying over everything except the CDB files from the new netsim directory into your instance directory and restarting your netsim. It will often work, but there are no guarantees. In particular, you will probably no longer be in sync with the device.

yfherzog
Cisco Employee
Cisco Employee

To recreate the exact set of devices you have at the moment, you can display the content of file netsim/README.netsim.

('netsim' being your netsim directory). This file holds the command that were used for creating your current netsim devices.

 

So if you copy the ncs-netsim lines from this file, run ncs-netsim delete-network, and then paste the commands you copied, you should be left with the exact same devices, using the same ports as before (meaning that no configs are required in order to reconnect with the devices on NSO side - maybe fetch ssh keys).

 

If you need the actual configs that were on those devices, then you should be able to run sync-to at this point from NSO, and get the old configs synced back to them from NSO (excluding content in any non-backward compatible nodes in the data model).

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: