I have posted before with regard to generating individual sections of a device’s configuration (e.g. load just the interfaces section of a junos device). I have a number of these tasks loading different parts of a configuration, which work just fine, but now I’d like to build upon this concept.
What would be the best way to load an entire configuration for a device? Currently, I’m running napalm_configure within each task based on the results of the template_file subtask. I’d like to avoid having the script log into the device 15 times, so it makes more sense to combine the results of each task into one data structure and run napalm_configure once. Is this the right approach? Hopefully that makes sense, and I can clarify as needed. Thank you!