From 8e35b5bcb52c4d3de31cb62bb9ea756960908062 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Mon, 20 Jun 2011 08:52:49 +0000 Subject: [PATCH] The continued fix for the defect 3317678 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9854 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/SvrUtils.pm | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index ecb6772b5..d9aa1aa4e 100644 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -46,6 +46,7 @@ sub getNodesetStates my @aixnodes = (); my @pxenodes = (); my @yabootnodes = (); + my @xnbanodes= (); my $tabdata = $tab->getNodesAttribs(\@nodes, ['node', 'netboot']); foreach my $node (@nodes) { @@ -56,6 +57,10 @@ sub getNodesetStates { push(@yabootnodes, $node); } + elsif ($nb eq "xnba") + { + push(@xnbanodes, $node); + } elsif ($nb eq "pxe") { push(@pxenodes, $node); @@ -95,6 +100,19 @@ sub getNodesetStates xCAT::MsgUtils->message('E', $retarray[1]); } } + if (@xnbanodes > 0) + { + require xCAT_plugin::xnba; + @retarray = + xCAT_plugin::xnba::getNodesetStates(\@xnbanodes, $hashref); + if ($retarray[0]) + { + $retcode = $retarray[0]; + $errormsg .= $retarray[1]; + xCAT::MsgUtils->message('E', $retarray[1]); + } + } + if (@aixnodes > 0) { require xCAT_plugin::aixinstall; @@ -147,9 +165,8 @@ sub get_nodeset_state my $tmp = xCAT_plugin::pxe::getstate($node); my @a = split(' ', $tmp); $state = $a[0]; - } - if ($boottype eq "xnba") + elsif ($boottype eq "xnba") { require xCAT_plugin::xnba; my $tmp = xCAT_plugin::xnba::getstate($node);