diff --git a/server/src/com/cloud/network/element/VirtualRouterElement.java b/server/src/com/cloud/network/element/VirtualRouterElement.java index 93fb3fbdff9..227eb850752 100644 --- a/server/src/com/cloud/network/element/VirtualRouterElement.java +++ b/server/src/com/cloud/network/element/VirtualRouterElement.java @@ -333,7 +333,7 @@ public class VirtualRouterElement extends DhcpElement implements VirtualRouterEl @Override public boolean applyStaticNats(Network config, List rules) throws ResourceUnavailableException { - if (canHandle(config.getGuestType(), config.getNetworkOfferingId(), Service.Firewall)) { + if (canHandle(config.getGuestType(), config.getNetworkOfferingId(), Service.StaticNat)) { List routers = _routerDao.listByNetworkAndRole(config.getId(), Role.DHCP_FIREWALL_LB_PASSWD_USERDATA); if (routers == null || routers.isEmpty()) { s_logger.debug("Virtual router elemnt doesn't need to apply static nat on the backend; virtual router doesn't exist in the network " + config.getId()); @@ -429,7 +429,7 @@ public class VirtualRouterElement extends DhcpElement implements VirtualRouterEl @Override public boolean applyPFRules(Network network, List rules) throws ResourceUnavailableException { - if (canHandle(network.getGuestType(), network.getNetworkOfferingId(), Service.Firewall)) { + if (canHandle(network.getGuestType(), network.getNetworkOfferingId(), Service.PortForwarding)) { List routers = _routerDao.listByNetworkAndRole(network.getId(), Role.DHCP_FIREWALL_LB_PASSWD_USERDATA); if (routers == null || routers.isEmpty()) { s_logger.debug("Virtual router elemnt doesn't need to apply firewall rules on the backend; virtual router doesn't exist in the network " + network.getId());