Revision 2796f26a snf-cyclades-app/synnefo/logic/management/commands/reconcile-networks.py

b/snf-cyclades-app/synnefo/logic/management/commands/reconcile-networks.py
157 157
            reconcile_ip_pools(network, ip_available_maps, ip_reserved_maps)
158 158

  
159 159
        if conflicting_ips:
160
            detect_conflicting_ips()
160
            detect_conflicting_ips(network)
161 161

  
162 162
    # CASE-6: Orphan networks
163 163
    reconcile_orphan_networks(networks, ganeti_networks)
......
293 293
    r_map = a_map.copy()
294 294
    r_map.setall(True)
295 295
    for address in reserved.split(','):
296
        index = converter.value_to_index(address.strip())
297
        a_map[index] = True
298
        r_map[index] = False
296
        if address:
297
            index = converter.value_to_index(address.strip())
298
            a_map[index] = True
299
            r_map[index] = False
299 300
    return a_map, r_map
300 301

  
301 302

  

Also available in: Unified diff