Revision e01365a8 lib/config.py
b/lib/config.py | ||
---|---|---|
1421 | 1421 |
if network_port is not None: |
1422 | 1422 |
self._config_data.cluster.tcpudp_port_pool.add(network_port) |
1423 | 1423 |
|
1424 |
instance = self._UnlockedGetInstanceInfo(instance_name) |
|
1425 |
|
|
1426 |
for nic in instance.nics: |
|
1427 |
if nic.network is not None and nic.ip is not None: |
|
1428 |
net_uuid = self._UnlockedLookupNetwork(nic.network) |
|
1429 |
if net_uuid: |
|
1430 |
# Return all IP addresses to the respective address pools |
|
1431 |
self._UnlockedCommitIp('release', net_uuid, nic.ip) |
|
1432 |
|
|
1433 |
|
|
1424 | 1434 |
del self._config_data.instances[instance_name] |
1425 | 1435 |
self._config_data.cluster.serial_no += 1 |
1426 | 1436 |
self._WriteConfig() |
Also available in: Unified diff