VPC: fixed list public ips by vpcId

This commit is contained in:
Alena Prokharchyk 2012-06-26 16:35:56 -07:00
parent fcdf6f2bec
commit 09bd4e1725

View File

@ -1742,7 +1742,7 @@ public class ManagementServerImpl implements ManagementServer {
}
// don't show SSVM/CPVM ips
if (vlanType == VlanType.VirtualNetwork && (allocatedOnly)) {
if (vlanType == VlanType.VirtualNetwork && (allocatedOnly) && vpcId == null) {
sb.and("associatedNetworkId", sb.entity().getAssociatedWithNetworkId(), SearchCriteria.Op.NNULL);
}