Port forward fix for stateless

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8981 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-03-03 20:37:26 +00:00
parent 8cd38a0c7f
commit 1238d2fbe3

View File

@ -615,7 +615,7 @@ sub mknetboot
#}
# append the mac address
my $mac;
if( $machash->{$node}->[0] && $machash->{$node}->[0]->{'mac'}) {
if( $useifname && $machash->{$node}->[0] && $machash->{$node}->[0]->{'mac'}) {
# TODO: currently, only "mac" attribute with classic style is used, the "|" delimited string of "macaddress!hostname" format is not used
$mac = $machash->{$node}->[0]->{'mac'};
if ( (index($mac, "|") eq -1) and (index($mac, "!") eq -1) ) {