mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1866: create iptables rules for network usage in finalizeSshAndVersionAndNetworkUsageOnStart only for non-Vpc network
This commit is contained in:
parent
68f51a3db9
commit
c2f0a2f6da
|
|
@ -2280,7 +2280,8 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
|
|||
|
||||
// Network usage command to create iptables rules
|
||||
boolean forVpc = profile.getVirtualMachine().getVpcId() != null;
|
||||
cmds.addCommand("networkUsage", new NetworkUsageCommand(controlNic.getIp4Address(), router.getHostName(), "create", forVpc));
|
||||
if (!forVpc)
|
||||
cmds.addCommand("networkUsage", new NetworkUsageCommand(controlNic.getIp4Address(), router.getHostName(), "create", forVpc));
|
||||
}
|
||||
|
||||
protected void finalizeUserDataAndDhcpOnStart(Commands cmds, DomainRouterVO router, Provider provider, Long guestNetworkId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue