From c4c640d18acfab483561d3cf85c8c6ca8737fd03 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 29 Aug 2017 17:07:14 -0400 Subject: [PATCH] Open the functions that are currently supported, sshcfg, ip=dhcp, and hostname for rspconfig --- xCAT-server/lib/xcat/plugins/openbmc.pm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index bfb86f965..b4da6fbc0 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -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