server bug fix: remove network details when network is removed (#5675)

This commit is contained in:
Wei Zhou 2021-11-25 21:15:51 +01:00 committed by GitHub
parent 2b54b587fc
commit 965316b842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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};
}
}
}