diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index c8804cc08..cbb93a857 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -965,6 +965,7 @@ sub setup_TFTP } } $cmdref->{command}->[0] = "nodeset"; + $cmdref->{localonly}->[0] = "1"; $cmdref->{arg}->[0] = "enact"; $cmdref->{cwd}->[0] = "/opt/xcat/sbin"; my $plugins_dir=$::XCATROOT.'/lib/perl/xCAT_plugin'; diff --git a/xCAT-server/lib/xcat/plugins/pxe.pm b/xCAT-server/lib/xcat/plugins/pxe.pm index 631646641..8a46a9340 100644 --- a/xCAT-server/lib/xcat/plugins/pxe.pm +++ b/xCAT-server/lib/xcat/plugins/pxe.pm @@ -189,6 +189,9 @@ sub preprocess_request { my $sent = $stab->getAttribs({key=>'sharedtftp'},'value'); if ($sent and ($sent->{value} == 0 or $sent->{value} =~ /no/i)) { $req->{'_disparatetftp'}=[1]; + if ($req->{localonly}->[0]) { + return [$req]; + } return xCAT::Scope->get_broadcast_scope($req,@_); } return [$req]; diff --git a/xCAT-server/lib/xcat/plugins/yaboot.pm b/xCAT-server/lib/xcat/plugins/yaboot.pm index 0fcd343e0..aaff1880c 100644 --- a/xCAT-server/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server/lib/xcat/plugins/yaboot.pm @@ -191,6 +191,9 @@ sub preprocess_request { my $sent = $stab->getAttribs({key=>'sharedtftp'},'value'); if ($sent and ($sent->{value} == 0 or $sent->{value} =~ /no/i)) { $req->{'_disparatetftp'}=[1]; + if ($req->{localonly}->[0]) { + return [$req]; + } return xCAT::Scope->get_broadcast_scope($req,@_); } return [$req];