You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pe...@apache.org on 2026/03/06 06:01:20 UTC

(cloudstack) branch fix-persistent-ntwk-host-setup created (now d186b15fe28)

This is an automated email from the ASF dual-hosted git repository.

pearl11594 pushed a change to branch fix-persistent-ntwk-host-setup
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


      at d186b15fe28 Fix Host setup when persistent networks exist

This branch includes the following new commits:

     new d186b15fe28 Fix Host setup when persistent networks exist

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(cloudstack) 01/01: Fix Host setup when persistent networks exist

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pearl11594 pushed a commit to branch fix-persistent-ntwk-host-setup
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit d186b15fe2861d43ab2ae005f8f26249275fd519
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Fri Mar 6 01:01:02 2026 -0500

    Fix Host setup when persistent networks exist
---
 engine/schema/src/main/java/com/cloud/network/dao/NetworkDaoImpl.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/engine/schema/src/main/java/com/cloud/network/dao/NetworkDaoImpl.java b/engine/schema/src/main/java/com/cloud/network/dao/NetworkDaoImpl.java
index 8066b89b4b9..5887498e094 100644
--- a/engine/schema/src/main/java/com/cloud/network/dao/NetworkDaoImpl.java
+++ b/engine/schema/src/main/java/com/cloud/network/dao/NetworkDaoImpl.java
@@ -193,6 +193,7 @@ public class NetworkDaoImpl extends GenericDaoBase<NetworkVO, Long>implements Ne
         PersistentNetworkSearch.and("id", PersistentNetworkSearch.entity().getId(), Op.NEQ);
         PersistentNetworkSearch.and("guestType", PersistentNetworkSearch.entity().getGuestType(), Op.IN);
         PersistentNetworkSearch.and("broadcastUri", PersistentNetworkSearch.entity().getBroadcastUri(), Op.EQ);
+        PersistentNetworkSearch.and("dc", PersistentNetworkSearch.entity().getDataCenterId(), Op.EQ);
         PersistentNetworkSearch.and("removed", PersistentNetworkSearch.entity().getRemoved(), Op.NULL);
         final SearchBuilder<NetworkOfferingVO> persistentNtwkOffJoin = _ntwkOffDao.createSearchBuilder();
         persistentNtwkOffJoin.and("persistent", persistentNtwkOffJoin.entity().isPersistent(), Op.EQ);