Skip to content

Commit 28c67d2

Browse files
authored
listphysicalnetworks: Honouring keyword parameter (#4511)
1 parent edd5f23 commit 28c67d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/main/java/com/cloud/network/NetworkServiceImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3068,6 +3068,10 @@ public Pair<List<? extends PhysicalNetwork>, Integer> searchPhysicalNetworks(Lon
30683068
sc.addAnd("name", SearchCriteria.Op.LIKE, "%" + name + "%");
30693069
}
30703070

3071+
if (keyword != null) {
3072+
sc.addAnd("name", SearchCriteria.Op.LIKE, "%" + keyword + "%");
3073+
}
3074+
30713075
Pair<List<PhysicalNetworkVO>, Integer> result = _physicalNetworkDao.searchAndCount(sc, searchFilter);
30723076
return new Pair<List<? extends PhysicalNetwork>, Integer>(result.first(), result.second());
30733077
}

0 commit comments

Comments
 (0)