rename XML routine to setNodesAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13757 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d89e6e1c7c
commit
c1906b8e08
@ -57,7 +57,7 @@ sub handled_commands
|
||||
tabgrep => "tabutils",
|
||||
getAllEntries => "tabutils",
|
||||
getNodesAttribs => "tabutils",
|
||||
setNodesAttribs1 => "tabutils",
|
||||
setNodesAttribs => "tabutils",
|
||||
delEntries => "tabutils",
|
||||
getAttribs => "tabutils",
|
||||
setAttribs => "tabutils",
|
||||
@ -156,9 +156,9 @@ sub process_request
|
||||
{
|
||||
return getNodesAttribs($request,$callback);
|
||||
}
|
||||
elsif ($command eq "setNodesAttribs1")
|
||||
elsif ($command eq "setNodesAttribs")
|
||||
{
|
||||
return setNodesAttribs1($request,$callback);
|
||||
return setNodesAttribs($request,$callback);
|
||||
}
|
||||
elsif ($command eq "delEntries")
|
||||
{
|
||||
@ -2380,12 +2380,12 @@ sub getNodesAttribs
|
||||
}
|
||||
|
||||
#
|
||||
# setNodesAttribs1 - setNodesAttribs format 1
|
||||
# setNodesAttribs
|
||||
# Sets Nodes attributes for noderange for each of the tables supplied
|
||||
# Example of XML in for this routine
|
||||
#<xcatrequest>
|
||||
#<clienttype>PCM</clienttype>
|
||||
#<command>setNodesAttribs1</command>
|
||||
#<command>setNodesAttribs</command>
|
||||
#<noderange>blade01-blade02</noderange>
|
||||
#<arg>
|
||||
# <table>
|
||||
@ -2405,7 +2405,7 @@ sub getNodesAttribs
|
||||
#</arg>
|
||||
#</xcatrequest>
|
||||
#
|
||||
sub setNodesAttribs1
|
||||
sub setNodesAttribs
|
||||
{
|
||||
my $request = shift;
|
||||
my $cb = shift;
|
||||
@ -2421,7 +2421,6 @@ sub setNodesAttribs1
|
||||
$newrequest->{command}->[0] = "nodech";
|
||||
foreach my $table (@$tables) {
|
||||
my $tablename = $table->{name}->[0];
|
||||
my $tab=xCAT::Table->new($tablename);
|
||||
my %keyhash;
|
||||
my $attrs = $table->{attr};
|
||||
foreach my $attrhash (@$attrs) {
|
||||
|
Loading…
Reference in New Issue
Block a user