You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by we...@apache.org on 2021/11/25 20:16:20 UTC
[cloudstack] branch 4.16 updated: server bug fix: remove network details when network is removed (#5675)
This is an automated email from the ASF dual-hosted git repository.
weizhou pushed a commit to branch 4.16
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.16 by this push:
new 965316b server bug fix: remove network details when network is removed (#5675)
965316b is described below
commit 965316b842d19c4dcb1b2028476b47f1899f7d59
Author: Wei Zhou <we...@apache.org>
AuthorDate: Thu Nov 25 21:15:51 2021 +0100
server bug fix: remove network details when network is removed (#5675)
---
.../apache/cloudstack/engine/orchestration/NetworkOrchestrator.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java b/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java
index 136c2a7..7e206ff 100644
--- a/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java
+++ b/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java
@@ -3116,6 +3116,8 @@ public class NetworkOrchestrator extends ManagerBase implements NetworkOrchestra
if (networkAccount != null) {
_networkAccountDao.remove(networkAccount.getId());
}
+
+ networkDetailsDao.removeDetails(networkFinal.getId());
}
final NetworkOffering ntwkOff = _entityMgr.findById(NetworkOffering.class, networkFinal.getNetworkOfferingId());
@@ -4403,4 +4405,4 @@ public class NetworkOrchestrator extends ManagerBase implements NetworkOrchestra
GuestDomainSuffix, NetworkThrottlingRate, MinVRVersion,
PromiscuousMode, MacAddressChanges, ForgedTransmits, MacLearning, RollingRestartEnabled};
}
-}
\ No newline at end of file
+}