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:
@@ -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: ::
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user