mirror of https://github.com/apache/cloudstack.git
VPC: CS-15550 - fixed listVPCs by cidr
This commit is contained in:
parent
c5be9daa95
commit
fcd9c0c368
|
|
@ -687,6 +687,7 @@ public class VpcManagerImpl implements VpcManager, Manager{
|
|||
sb.and("zoneId", sb.entity().getZoneId(), SearchCriteria.Op.EQ);
|
||||
sb.and("state", sb.entity().getState(), SearchCriteria.Op.EQ);
|
||||
sb.and("restartRequired", sb.entity().isRestartRequired(), SearchCriteria.Op.EQ);
|
||||
sb.and("cidr", sb.entity().getCidr(), SearchCriteria.Op.EQ);
|
||||
|
||||
if (tags != null && !tags.isEmpty()) {
|
||||
SearchBuilder<ResourceTagVO> tagSearch = _resourceTagDao.createSearchBuilder();
|
||||
|
|
@ -745,6 +746,10 @@ public class VpcManagerImpl implements VpcManager, Manager{
|
|||
sc.addAnd("state", SearchCriteria.Op.EQ, state);
|
||||
}
|
||||
|
||||
if (cidr != null) {
|
||||
sc.addAnd("cidr", SearchCriteria.Op.EQ, cidr);
|
||||
}
|
||||
|
||||
if (restartRequired != null) {
|
||||
sc.addAnd("restartRequired", SearchCriteria.Op.EQ, restartRequired);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue