mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	Fix logic, check for ipforward in wrong place
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10156 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -215,6 +215,16 @@ sub init_plugin
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
            }
 | 
			
		||||
	    my $service = "ipforward";
 | 
			
		||||
  	    if (grep(/$service/, @servicelist))
 | 
			
		||||
	    {
 | 
			
		||||
	    
 | 
			
		||||
	      $rc =  xCAT::NetworkUtils->setup_ip_forwarding(1);    # enable ip forwarding
 | 
			
		||||
	      if ($rc == 0)
 | 
			
		||||
	      {
 | 
			
		||||
	    	xCAT::Utils->update_xCATSN($service);
 | 
			
		||||
	      }
 | 
			
		||||
	    }
 | 
			
		||||
 | 
			
		||||
            #
 | 
			
		||||
            # setup dhcp only on Linux and last
 | 
			
		||||
@@ -253,16 +263,6 @@ sub init_plugin
 | 
			
		||||
                                "AAsn.pm:Error reading the servicenode table.");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
	my $service = "ipforward";
 | 
			
		||||
	if (grep(/$service/, @servicelist))
 | 
			
		||||
	{
 | 
			
		||||
	    
 | 
			
		||||
	    $rc =  xCAT::NetworkUtils->setup_ip_forwarding(1);    # enable ip forwarding
 | 
			
		||||
	    if ($rc == 0)
 | 
			
		||||
	    {
 | 
			
		||||
		xCAT::Utils->update_xCATSN($service);
 | 
			
		||||
	    }
 | 
			
		||||
	}
 | 
			
		||||
    }
 | 
			
		||||
    else     # management node
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user