fix for bug 3446: for SLES, do not add FW_DEV_EXT if there is only nic

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2013-03-28 05:35:58 +00:00
parent 7dbd6aaf3e
commit c06c616558

View File

@ -102,7 +102,12 @@ elsif (-f "/etc/SuSE-release")
my $privintf = join(' ', @privates);
# Configuration content
$conf .= "FW_DEV_EXT=\"$::opt_public\"\n";
# if the public and private interface is the same,
# do not set FW_DEV_EXT
if ($::opt_public ne $privintf)
{
$conf .= "FW_DEV_EXT=\"$::opt_public\"\n";
}
$conf .= "FW_DEV_INT=\"$privintf\"\n";
$conf .= "FW_MASQUERADE=\"yes\"\n";
$conf .= "FW_PROTECT_FROM_INT=\"no\"\n";