2019-09-30 22:08:37 -04:00
|
|
|
import ipaddress
|
2019-11-10 05:39:33 -05:00
|
|
|
import socket
|
2019-11-30 01:05:20 -05:00
|
|
|
##
|
|
|
|
# We have to use Jinja2 because while there are ways to *parse* an INI with duplicate keys
|
|
|
|
# (https://stackoverflow.com/a/38286559/733214), there's no way to *write* an INI with them using configparser.
|
|
|
|
# So we use Jinja2 logic.
|
|
|
|
import jinja2
|