mirror of https://github.com/apache/cloudstack.git
listphysicalnetworks: Honouring keyword parameter (#4511)
This commit is contained in:
parent
edd5f23e8b
commit
28c67d267b
|
|
@ -3068,6 +3068,10 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService, C
|
|||
sc.addAnd("name", SearchCriteria.Op.LIKE, "%" + name + "%");
|
||||
}
|
||||
|
||||
if (keyword != null) {
|
||||
sc.addAnd("name", SearchCriteria.Op.LIKE, "%" + keyword + "%");
|
||||
}
|
||||
|
||||
Pair<List<PhysicalNetworkVO>, Integer> result = _physicalNetworkDao.searchAndCount(sc, searchFilter);
|
||||
return new Pair<List<? extends PhysicalNetwork>, Integer>(result.first(), result.second());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue