diff --git a/xCAT-server-2.0/lib/xcat/plugins/pxe.pm b/xCAT-server-2.0/lib/xcat/plugins/pxe.pm index 74bf5d37b..e1d3bce9c 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/pxe.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/pxe.pm @@ -143,26 +143,28 @@ sub pass_along { - -sub preprocess_request { - my $req = shift; - $callback = shift; - if ($req->{_xcatdest}) { return [$req]; } #Exit if the packet has been preprocessed in its history - my @requests = ({%$req}); #Start with a straight copy to reflect local instance - my $sitetab = xCAT::Table->new('site'); - (my $ent) = $sitetab->getAttribs({key=>'xcatservers'},'value'); - $sitetab->close; - if ($ent and $ent->{value}) { - foreach (split /,/,$ent->{value}) { - if (xCAT::Utils->thishostisnot($_)) { - my $reqcopy = {%$req}; - $reqcopy->{'_xcatdest'} = $_; - push @requests,$reqcopy; - } - } - } - return \@requests; -} +# Removing hierarchy, command will be processed on the MN. +# If hierachy is put back the code my change to use Utils->get_Servicenode +# and not use xcatservers from the site table. +#sub preprocess_request { +# my $req = shift; +# $callback = shift; +# if ($req->{_xcatdest}) { return [$req]; } #Exit if the packet has been preprocessed in its history +# my @requests = ({%$req}); #Start with a straight copy to reflect local instance +# my $sitetab = xCAT::Table->new('site'); +# (my $ent) = $sitetab->getAttribs({key=>'xcatservers'},'value'); +# $sitetab->close; +# if ($ent and $ent->{value}) { +# foreach (split /,/,$ent->{value}) { +# if (xCAT::Utils->thishostisnot($_)) { +# my $reqcopy = {%$req}; +# $reqcopy->{'_xcatdest'} = $_; +# push @requests,$reqcopy; +# } +# } +# } +# return \@requests; +#} #sub preprocess_request { # my $req = shift; # my $callback = shift;