I want to write a simple python 2.7 jinja2 writer that writes out text config files for WL AccessPoints
I have the following structure in my directory ~/Documents/PyCharmProjects:
config-data.csv
mk-wl-ap-configs.py
shadow.jinja
network.jinja
wireless,jinja
and I ultimatley I want it to write the jinja2 rendered output to subdirs named after the AccessPoints
ap1:
shadow
network
wireless
ap2:
shadow
network
wireless
This is getting so close now. It is now writing the output into the desired subdir structure, And it is now perfectly rendering the 1st out of 3 templates. No idea why it won't do the 2nd and 3rd one?
the current code in use is
"mk-wl-ap-configs_v4.py"
Why does it only do the 1st loop on the 'shadow' and not the one on 'network' and 'wireless' templates as well?