From 965316b842d19c4dcb1b2028476b47f1899f7d59 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Thu, 25 Nov 2021 21:15:51 +0100 Subject: [PATCH] server bug fix: remove network details when network is removed (#5675) --- .../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 136c2a7d766..7e206fffeef 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 +}