2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Open the functions that are currently supported, sshcfg, ip=dhcp, and hostname for rspconfig

This commit is contained in:
Victor Hu 2017-08-29 17:07:14 -04:00
parent 1542027192
commit c4c640d18a

View File

@ -560,10 +560,6 @@ sub parse_args {
return ([ 1, "Unsupported command: $command $subcommand" ]);
}
} elsif ($command eq "rspconfig") {
#
# disable function until fully tested
#
$check = unsupported($callback); if (ref($check) eq "ARRAY") { return $check; }
my $setorget;
foreach $subcommand (@ARGV) {
if ($subcommand =~ /^(\w+)=(.*)/) {
@ -582,10 +578,22 @@ sub parse_args {
}
}
$setorget = "set";
#
# disable function until fully tested
#
unless ($key eq "ip" or !($subcommand =~ /^hostname$/)) {
$check = unsupported($callback); if (ref($check) eq "ARRAY") { return $check; }
}
if (ref($check) eq "ARRAY") { return $check; }
} elsif ($subcommand =~ /^ip$|^netmask$|^gateway$|^hostname$|^vlan$/) {
return ([ 1, "Can not configure and display nodes' value at the same time" ]) if ($setorget and $setorget eq "set");
$setorget = "get";
#
# disable function until fully tested
#
unless ($subcommand =~ /^hostname$/) {
$check = unsupported($callback); if (ref($check) eq "ARRAY") { return $check; }
}
if (ref($check) eq "ARRAY") { return $check; }
} elsif ($subcommand =~ /^sshcfg$/) {
$setorget = ""; # SSH Keys are copied using a RShellAPI, not REST API