VPC: fixed listStaticRoutes when search by gatewayId

This commit is contained in:
Alena Prokharchyk 2012-07-11 14:51:05 -07:00
parent 1a3a899d59
commit a0a0113b51
2 changed files with 2 additions and 3 deletions

View File

@ -4424,8 +4424,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
// remote access vpn can be enabled only for static nat ip, so this part should never be executed under normal
// conditions
// only when ip address failed to be cleaned up as a part of account destroy and was marked as Releasing, this
// part of
// only when ip address failed to be cleaned up as a part of account destroy and was marked as Releasing, this part of
// the code would be triggered
s_logger.debug("Cleaning up remote access vpns as a part of public IP id=" + ipId + " release...");
try {

View File

@ -1538,7 +1538,7 @@ public class VpcManagerImpl implements VpcManager, Manager{
}
if (gatewayId != null) {
sc.addAnd("vpcGatewayId", Op.EQ, vpcId);
sc.addAnd("vpcGatewayId", Op.EQ, gatewayId);
}
if (tags != null && !tags.isEmpty()) {