2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-30 00:01:56 +00:00

update onie doc to add rspconfig sshcfg command (#5539)

This commit is contained in:
cxhong
2018-08-21 02:23:56 -04:00
committed by yangsong
parent d9c88bff3b
commit 5b7b407793
3 changed files with 9 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ To ease in the management of the switch, xCAT provides a script to help configur
Execute the following to sync the xCAT keys to the switch: ::
/opt/xcat/share/xcat/scripts/configonie --switches frame01sw1 --ssh
rspconfig frame01sw1 sshcfg
Validate the ssh keys are correctly configured by running a ``xdsh`` command: ::

View File

@@ -107,6 +107,8 @@ sub process_request {
my $subcmd = $exargs[0];
if ($subcmd eq 'sshcfg') {
process_sshcfg($nodes, $callback);
} else {
xCAT::MsgUtils->message("I", { data => ["The rspconfig command $subcmd is not supported"] }, $callback);
}
}

View File

@@ -420,9 +420,12 @@ sub process_switch_config {
xCAT::MellanoxIB::setConfig($nodes, $callback, $subreq, $subcommand, $argument);
}
} else {
my $rsp = {};
$rsp->{error}->[0] = "The following '$t' switches are unsuppored:\n@$nodes";
$callback->($rsp);
#onie switch will processed in the onie plug in
unless ($t =~ /onie/i) {
my $rsp = {};
$rsp->{error}->[0] = "The following '$t' switches are not supported:\n@$nodes";
$callback->($rsp);
}
}
}
}