Skip to content

Commit fe32dc7

Browse files
author
Sheng Yang
committed
Baremetal: Add BaremetalDhcp Server and BaremetalPxe server to avoid list of stats collector
1 parent db97bb8 commit fe32dc7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎server/src/com/cloud/server/StatsCollector.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ public void run() {
247247
sc.addAnd("type", SearchCriteria.Op.NEQ, Host.Type.ExternalFirewall.toString());
248248
sc.addAnd("type", SearchCriteria.Op.NEQ, Host.Type.ExternalLoadBalancer.toString());
249249
sc.addAnd("type", SearchCriteria.Op.NEQ, Host.Type.L2Networking.toString());
250+
sc.addAnd("type", SearchCriteria.Op.NEQ, Host.Type.BaremetalDhcp.toString());
251+
sc.addAnd("type", SearchCriteria.Op.NEQ, Host.Type.BaremetalPxe.toString());
250252
ConcurrentHashMap<Long, HostStats> hostStats = new ConcurrentHashMap<Long, HostStats>();
251253
List<HostVO> hosts = _hostDao.search(sc, null);
252254
for (HostVO host : hosts)

0 commit comments

Comments
 (0)