Revision 5c6672e9

b/lib/config.py
1430 1430
    if network_port is not None:
1431 1431
      self._config_data.cluster.tcpudp_port_pool.add(network_port)
1432 1432

  
1433
    instance = self._UnlockedGetInstanceInfo(instance_name)
1434

  
1435
    for nic in instance.nics:
1436
      if nic.network is not None and nic.ip is not None:
1437
        net_uuid = self._UnlockedLookupNetwork(nic.network)
1438
        if net_uuid:
1439
          # Return all IP addresses to the respective address pools
1440
          self._UnlockedCommitIp('release', net_uuid, nic.ip)
1441

  
1442

  
1433 1443
    del self._config_data.instances[instance_name]
1434 1444
    self._config_data.cluster.serial_no += 1
1435 1445
    self._WriteConfig()

Also available in: Unified diff