mirror of https://github.com/apache/cloudstack.git
VPC: fixed listStaticRoutes when search by gatewayId
This commit is contained in:
parent
a848ecae8b
commit
b15c2576a7
|
|
@ -4446,8 +4446,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 {
|
||||
|
|
|
|||
|
|
@ -1491,7 +1491,7 @@ public class VpcManagerImpl implements VpcManager, Manager{
|
|||
}
|
||||
|
||||
if (gatewayId != null) {
|
||||
sc.addAnd("vpcGatewayId", Op.EQ, vpcId);
|
||||
sc.addAnd("vpcGatewayId", Op.EQ, gatewayId);
|
||||
}
|
||||
|
||||
return _staticRouteDao.search(sc, searchFilter);
|
||||
|
|
|
|||
Loading…
Reference in New Issue