mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	bug 11581: During router start, create iptables NETWORK_STATS chain before adding rules for additional public interfaces into that chain
status 11581: resolved fixed reviewed-by: Chiradeep
This commit is contained in:
		
							parent
							
								
									da2696b2f6
								
							
						
					
					
						commit
						806bfe33c4
					
				@ -1555,6 +1555,9 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
 | 
			
		||||
 | 
			
		||||
        cmds.addCommand("checkSsh", new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922, 5, 20));
 | 
			
		||||
 | 
			
		||||
        // Network usage command to create iptables rules
 | 
			
		||||
        cmds.addCommand("networkUsage", new NetworkUsageCommand(controlNic.getIp4Address(), router.getHostName(), "create"));
 | 
			
		||||
        
 | 
			
		||||
        // restart network if restartNetwork = false is not specified in profile parameters
 | 
			
		||||
        boolean restartNetwork = true;
 | 
			
		||||
        if (profile.getParameter(Param.RestartNetwork) != null && (Boolean) profile.getParameter(Param.RestartNetwork) == false) {
 | 
			
		||||
@ -1666,8 +1669,6 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
 | 
			
		||||
        // Resend user data
 | 
			
		||||
        s_logger.debug("Reapplying vm data (userData and metaData) entries as a part of domR " + router + " start...");
 | 
			
		||||
        createVmDataCommands(router, cmds);
 | 
			
		||||
        // Network usage command to create iptables rules
 | 
			
		||||
        cmds.addCommand("networkUsage", new NetworkUsageCommand(controlNic.getIp4Address(), router.getHostName(), "create"));
 | 
			
		||||
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user