View Single Post
  #4  
Old 07-24-2019, 07:02 AM
ogun ogun is offline
Registered User
 
Join Date: Sep 2013
Posts: 15
We do basically what you are asking for at our place. I wrote a python script that takes JSON data files and generates sessions accordingly.

It was posted on the forum previously https://forums.vandyke.com/showthread.php?t=13019

When it runs, it creates a diff of existing sessions and new sessions. It will then create all the new sessions and ask if it should delete sessions no longer in the data file.
It will not touch already existing sessions based on the session name as the key, if you want to generate them again you'd have to delete the session and then run the script.
When it creates a session it copies the default session, sets the parameters and then saves it as a new session.

Feel free to use as inspiration or as is, I'll be happy to answer any questions as well.
Reply With Quote