in DFM hierarchical cluster, mkhwconn/lshwconn/rmhwconn with -T fnm will send the command to CEC/Frame direclty, not through the service node if specified.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10777 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2011-10-14 05:43:26 +00:00
parent 1f3580e1e0
commit 79079511d6

View File

@ -3618,7 +3618,7 @@ sub get_site_Master
sub get_ServiceNode
{
require xCAT::Table;
my ($class, $node, $service, $request) = @_;
my ($class, $node, $service, $request, $onlymaster) = @_;
my @node_list = @$node;
my $cmd;
my %snhash;
@ -3636,7 +3636,13 @@ sub get_ServiceNode
if ($request eq "MN")
{
$snattribute = "servicenode";
if( $onlymaster == 1) {
$snattribute = "xcatmaster";
} else {
$snattribute = "servicenode";
}
}
else # Node
{