Here’s a quick one for you. In Dynagen, if you want to load a configuration when you first fire up the router instance, you can use the cnfg tag in your NET file like this.
cnfg = /home/jac/labs/cfg/R0.cfg
If you put that in your dynagen NET file under a router, the contents of that file will be loaded into the router configuration when it’s brought up. This is great if you already have a configuration to use in another lab or if you want to load a basic configuration on startup. Please be warned, though; if you make changes to your router instance via the CLI and restart dyangen, the configuration changes you made will be gone. Be sure to remove that line from the NET before you restart dynagen.
Latest posts by jac (see all)
- Updating Stuff on Netbox with Pynetbox - January 25, 2023
- Adding Stuff to Netbox with Pynetbox - January 17, 2023
- Query Filtering with Pynetbox - January 16, 2023
4 comments for “Loading Configs at Startup in Dynagen”