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/branches/2.8-pcm@15684 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc
2013-03-28 05:36:14 +00:00
parent 4e1e20e4f2
commit 0d5e8aee1e

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";