Nice, and if you are doing it for the fun of it or for learnig,... it is fantastic. But if you just did it because you needed something to backup your switches configurations, I'd suggest to have a look at rancid or oxidized. Both do the same and support different brands of hardware, do bacckups on a schedule, integrate with git or svn so you can track or detect changes,... I have used oxidized and I am quite happy with it, even when I am not a big fan of ruby. Both are open source.
@mmezo Awesome links, I had no idea those tools existed.
I'm backing up a single switch on my home network, but for anything more complex those tools look great.
I have updated my blog post with links to those two tools! 👌
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.