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/branches/2.6@10773 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua
2011-10-14 05:27:39 +00:00
parent 8ac9b36562
commit 7ca22d39ac
+8 -2
View File
@@ -3616,7 +3616,8 @@ 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;
@@ -3634,7 +3635,12 @@ sub get_ServiceNode
if ($request eq "MN")
{
$snattribute = "servicenode";
if( $onlymaster == 1) {
$snattribute = "xcatmaster";
} else {
$snattribute = "servicenode";
}
}
else # Node
{