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:
parent
e6db2c7550
commit
7d94a89b10
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user