|
189 | 189 | import com.cloud.network.rules.StaticNatImpl; |
190 | 190 | import com.cloud.network.rules.StaticNatRule; |
191 | 191 | import com.cloud.network.rules.dao.PortForwardingRulesDao; |
| 192 | +import com.cloud.network.rules.FirewallRuleVO; |
192 | 193 | import com.cloud.network.vpn.Site2SiteVpnManager; |
193 | 194 | import com.cloud.offering.NetworkOffering; |
194 | 195 | import com.cloud.offering.ServiceOffering; |
@@ -2794,12 +2795,11 @@ public DomainRouterVO stop(VirtualRouter router, boolean forced, User user, Acco |
2794 | 2795 | } |
2795 | 2796 |
|
2796 | 2797 | @Override |
2797 | | - public boolean configDhcpForSubnet(Network network, final NicProfile nic, VirtualMachineProfile<UserVm> profile, DeployDestination dest, List<DomainRouterVO> routers) throws ResourceUnavailableException { |
| 2798 | + public boolean configDhcpForSubnet(Network network, final NicProfile nic, VirtualMachineProfile<UserVm> profile, DeployDestination dest, List<DomainRouterVO> routers) |
| 2799 | + throws ResourceUnavailableException { |
2798 | 2800 | _userVmDao.loadDetails((UserVmVO) profile.getVirtualMachine()); |
2799 | 2801 |
|
2800 | 2802 | final VirtualMachineProfile<UserVm> updatedProfile = profile; |
2801 | | - final boolean isZoneBasic = (dest.getDataCenter().getNetworkType() == NetworkType.Basic); |
2802 | | - final Long podId = isZoneBasic ? dest.getPod().getId() : null; |
2803 | 2803 |
|
2804 | 2804 | //Asuming we have only one router per network For Now. |
2805 | 2805 | DomainRouterVO router = routers.get(0); |
@@ -3732,6 +3732,7 @@ private void createFirewallRulesCommands(List<? extends FirewallRule> rules, Vir |
3732 | 3732 | } |
3733 | 3733 | rulesTO = new ArrayList<FirewallRuleTO>(); |
3734 | 3734 | for (FirewallRule rule : rules) { |
| 3735 | + _rulesDao.loadSourceCidrs((FirewallRuleVO)rule); |
3735 | 3736 | FirewallRule.TrafficType traffictype = rule.getTrafficType(); |
3736 | 3737 | if(traffictype == FirewallRule.TrafficType.Ingress){ |
3737 | 3738 | IpAddress sourceIp = _networkModel.getIp(rule.getSourceIpAddressId()); |
|
0 commit comments