I’m trying to build a demo which shows a golden config / day0 config load of multiple devices.
I’ve got the YANG model, template and NCS working and I can load a large template file into a single or multiple devices.
However, I want to clear netsim and the NCS config and start from scratch to show the value of the bulk load.
That’s where I run into issues.
What is the best method for:
Clearing the netsim and NCS config
Adding 5 new devices with a “blank slate” baseline config (just enough to connect)
Of course, I can do this one device at a time, but I want to do this with one or two operations for the whole device list
Go to Solution.
> -Clearing the netsim
$ ncs-netsim reset
> and NCS config
> -Adding 5 new devices with a “blank slate” baseline config (just
> enough to connect)
$ ncs-netsim create-network $NCS_DIR/packages/neds/cisco-ios 5 c
This creates the netsim for this, now
$ ncs-netsim ncs-xml-init > devs.xml
Creates the XML required for all netsim devices, including these
5 new ones.
This data can be either
- loaded with ncs_load -l -m devs.xml
- the xml file can be put in the CDB directory, then it'll be used
as initialization file (assuming the DB is empty, i.e there
are no cdb files existing at all)
> Of course, I can do this one device at a time, but I want to do this
> with one or two operations for the whole device list
> Any suggestions?
$ man ncs-netsim
$ man ncs-setup
$ ncs_load -h
View solution in original post