Bruno,
Based on the code it should split the config just fine, unless you use commas to separate networks via config.
.split() without arguments properly handles white space but not commas:
In [1]: networks_opt = '172.16.1.0/24 172.16.2.0/24'
In [2]: networks = networks_opt.split()
In [3]: networks Out[3]: ['172.16.1.0/24', '172.16.2.0/24']
In [4]: networks_opt = '172.16.1.0/24,172.16.2.0/24'
In [5]: networks = networks_opt.split()
In [6]: networks Out[6]: ['172.16.1.0/24,172.16.2.0/24']
Bruno,
Based on the code it should split the config just fine, unless you use commas to separate networks via config.
.split() without arguments properly handles white space but not commas:
In [1]: networks_opt = '172.16.1.0/24 172.16.2.0/24'
In [2]: networks = networks_ opt.split( )
In [3]: networks
Out[3]: ['172.16.1.0/24', '172.16.2.0/24']
In [4]: networks_opt = '172.16. 1.0/24, 172.16. 2.0/24'
In [5]: networks = networks_ opt.split( )
In [6]: networks 1.0/24, 172.16. 2.0/24' ]
Out[6]: ['172.16.