Comment 7 for bug 1523871

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

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']