cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
432
Views
5
Helpful
1
Replies

Device addition in NETSIM <<Each devices gets same port no as 8045>>

swarudka
Cisco Employee
Cisco Employee

Hi
I am adding devices in DOCKER NETSIM where i observed each added devices (VNF) gets same port no as 8045.
But in netsim device tree it showing as diffrent port no as 10034.

ncs-netsim list
name=ASHBURN-SAE_TENANT1-Dual-Cloud-CSR-EPGW-Dual_Cloud_CSR netconf=12034 snmp=11034 ipc=5022 cli=10034 dir=//netsim/ASHBURN-SAE_TENANT1-Dual-Cloud-CSR-EPGW-Dual_Cloud_CSR/ASHBURN-SAE_TENANT1-Dual-Cloud-CSR-EPGW-Dual_Cloud_CSR

But on NSO cli device it has 8045 port so i unable to deploy service chains (Error - failed to featch ssh-host key)

admin@ncs% run show configuration devices device ASHBURN-SAE_TENANT1-Dual-Cloud-CSR-EPGW-Dual_Cloud_CSR port

port 8045;

Is anyone faced same problem..?
Can you pls suggest how to resolve same.


Thanks 
Shankar

1 Reply 1

ramkraja
Cisco Employee
Cisco Employee

Check where you specify the initial config for the devices in NSO. Perhaps you have some stray xml file in your CDB directory, that has this wrong config? Or perhaps you already have some pre-existing config in NSO's CDB?

You can generate the appropriate initial config for your netsim devices using the command

ncs-netsim --dir <NetsimDir> ncs-xml-init > netsim_devices_init.xml

You can put this xml file in your CDB directory, so that when NSO starts, the correct config for the netsim devices will be loaded.

Note that this will help only if you start with an empty CDB for NSO. If there is already an existing CDB, the config in the xml files will not be loaded. Then you will have to manually load that config, using ncs_cmd or in ncs_cli, for example.