Skip to content

Commit c2f0a2f

Browse files
committed
CLOUDSTACK-1866: create iptables rules for network usage in finalizeSshAndVersionAndNetworkUsageOnStart only for non-Vpc network
1 parent 68f51a3 commit c2f0a2f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,8 @@ protected void finalizeSshAndVersionAndNetworkUsageOnStart(Commands cmds, Virtua
22802280

22812281
// Network usage command to create iptables rules
22822282
boolean forVpc = profile.getVirtualMachine().getVpcId() != null;
2283-
cmds.addCommand("networkUsage", new NetworkUsageCommand(controlNic.getIp4Address(), router.getHostName(), "create", forVpc));
2283+
if (!forVpc)
2284+
cmds.addCommand("networkUsage", new NetworkUsageCommand(controlNic.getIp4Address(), router.getHostName(), "create", forVpc));
22842285
}
22852286

22862287
protected void finalizeUserDataAndDhcpOnStart(Commands cmds, DomainRouterVO router, Provider provider, Long guestNetworkId) {

0 commit comments

Comments
 (0)