From 6f9e40db9323d9a5c6be0526250144c7d6874d69 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 7 May 2013 04:39:22 +0000 Subject: [PATCH] change filter_nodes subroutine that (renergy relhistogram) goto ipmi.pm and (rspconfig network|textid) goto blade.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16201 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index f3b601e6d..bb6b52dca 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -3276,12 +3276,14 @@ sub filter_nodes{ if (@args && ($cmd eq "rspconfig")) { if (!(grep /^(cec_off_policy|pending_power_on_side)/, @args)) { push @{$mpnodes}, @ngpfsp; - if (grep /^(network=)/, @args) { - push @{$mpnodes}, @ngpbmc; - } } else { push @{$fspnodes}, @ngpfsp; } + if (grep /^(network|textid)/, @args) { + push @{$mpnodes}, @ngpbmc; + } else { + push @{$bmcnodes}, @ngpbmc; + } } elsif($cmd eq "getmacs") { if (@args && (grep /^-D$/,@args)) { push @{$fspnodes}, @ngpfsp; @@ -3295,7 +3297,11 @@ sub filter_nodes{ push @{$mpnodes}, @ngpfsp; } } elsif ($cmd eq "renergy") { - push @{$mpnodes}, @ngpbmc; + if (grep /^(relhistogram)/, @args) { + push @{$bmcnodes}, @ngpbmc; + } else { + push @{$mpnodes}, @ngpbmc; + } push @{$mpnodes}, @ngpfsp; } else { push @{$fspnodes}, @ngpfsp;