bug 14420: listNetworkOfferings by networkId - respect specifyVlan flag of the original offering

status 14420: resolved fixed
This commit is contained in:
Alena Prokharchyk 2012-03-20 11:30:23 -07:00
parent da2be577a2
commit 88dd43e6e0
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,9 @@ public class NetworkOfferingDaoImpl extends GenericDaoBase<NetworkOfferingVO, Lo
sc.addAnd("trafficType", SearchCriteria.Op.EQ, originalOffering.getTrafficType());
sc.addAnd("state", SearchCriteria.Op.EQ, NetworkOffering.State.Enabled);
//specify Vlan should be the same
sc.addAnd("specifyVlan", SearchCriteria.Op.EQ, originalOffering.getSpecifyVlan());
return customSearch(sc, null);
}