mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 7606: adding delete vlans and ip addresses during zone deletion
status 7606: resolved fixed
This commit is contained in:
parent
951d86f41f
commit
3e1f782edd
@ -924,6 +924,12 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||||||
_networkDao.remove(network.getId());
|
_networkDao.remove(network.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//delete vlans for this zone
|
||||||
|
List<VlanVO> vlans = _vlanDao.listByZone(zoneId);
|
||||||
|
for(VlanVO vlan : vlans) {
|
||||||
|
_vlanDao.remove(vlan.getId());
|
||||||
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
s_logger.error("Failed to delete zone " + zoneId);
|
s_logger.error("Failed to delete zone " + zoneId);
|
||||||
throw new CloudRuntimeException("Failed to delete zone " + zoneId);
|
throw new CloudRuntimeException("Failed to delete zone " + zoneId);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user