mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
Merge pull request #4772 from whowutwut/time_sync_method
Add code to support timesyncmethod for OpenBMC using rspconfig
This commit is contained in:
commit
1cf4d75612
@ -49,6 +49,14 @@ OpenBMC specific:
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ {\ **ipsrc | ip | netmask | gateway | hostname | vlan | sshcfg**\ }
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **autoreboot**\
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **autoreboot={0|1}**\
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **bootmode**\
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **bootmode={safe|regular|setup}**\
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **dump**\ [\ **-l | -**\ **-list**\ ] [\ **-g | -**\ **-generate**\ ] [\ **-c | -**\ **-clear**\ {\ *id*\ | \ **all**\ }] [\ **-d | -**\ **-download**\ {\ *id*\ | \ **all**\ }]
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **powerrestorepolicy**\
|
||||
@ -59,13 +67,9 @@ OpenBMC specific:
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **powersupplyredundancy={disabled|enabled}**\
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **autoreboot**\
|
||||
\ **rspconfig**\ \ *noderange*\ \ **timesyncmethod**\
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **autoreboot={0|1}**\
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **bootmode**\
|
||||
|
||||
\ **rspconfig**\ \ *noderange*\ \ **bootmode={safe|regular|setup}**\
|
||||
\ **rspconfig**\ \ *noderange*\ \ **timesyncmethod={manual|ntp}**\
|
||||
|
||||
|
||||
MPA specific:
|
||||
@ -450,31 +454,31 @@ OPTIONS
|
||||
|
||||
\ **powerrestorepolicy**\
|
||||
|
||||
Display or control BMC Power Restore Policy attribute setting.
|
||||
Display or control BMC Power Restore Policy attribute setting. [OpenBMC]
|
||||
|
||||
|
||||
|
||||
\ **powersupplyredundancy**\
|
||||
|
||||
Display or control BMC Power Supply Redundancy attribute setting.
|
||||
Display or control BMC Power Supply Redundancy attribute setting. [OpenBMC]
|
||||
|
||||
|
||||
|
||||
\ **autoreboot**\
|
||||
|
||||
Display or control BMC Auto Reboot attribute setting.
|
||||
Display or control BMC Auto Reboot attribute setting. [OpenBMC]
|
||||
|
||||
|
||||
|
||||
\ **bootmode**\
|
||||
|
||||
Display or control BMC Boot Mode attribute setting.
|
||||
Display or control BMC Boot Mode attribute setting. [OpenBMC]
|
||||
|
||||
|
||||
|
||||
\ **dump**\
|
||||
|
||||
Manage OpenBMC system dumps. If no sub-option is provided, will generate, wait, and download the dump.
|
||||
Generate/Manage BMC system dumps. If no sub-option is provided, will generate, wait, and download the dump. [OpenBMC]
|
||||
|
||||
|
||||
\ **-c**\ will clear a single specified dump, or use 'all' to clear all dumps on the BMC.
|
||||
@ -495,6 +499,12 @@ OPTIONS
|
||||
|
||||
|
||||
|
||||
\ **timesyncmethod**\
|
||||
|
||||
Set the method for time synchronization on the BMC. [OpenBMC]
|
||||
|
||||
|
||||
|
||||
\ **network**\ ={[\ *ip*\ ],[\ *host*\ ],[\ *gateway*\ ],[\ *netmask*\ ]|\*}
|
||||
|
||||
For MPA: get or set the MPA network parameters. If '\*' is specified, all parameters are read from the xCAT database.
|
||||
|
@ -26,6 +26,14 @@ B<rspconfig> I<noderange> B<garp>=I<time>
|
||||
|
||||
B<rspconfig> I<noderange> {B<ipsrc>|B<ip>|B<netmask>|B<gateway>|B<hostname>|B<vlan>|B<sshcfg>}
|
||||
|
||||
B<rspconfig> I<noderange> B<autoreboot>
|
||||
|
||||
B<rspconfig> I<noderange> B<autoreboot={0|1}>
|
||||
|
||||
B<rspconfig> I<noderange> B<bootmode>
|
||||
|
||||
B<rspconfig> I<noderange> B<bootmode={safe|regular|setup}>
|
||||
|
||||
B<rspconfig> I<noderange> B<dump> [B<-l>|B<--list>] [B<-g>|B<--generate>] [B<-c>|B<--clear> {I<id> | B<all>}] [B<-d>|B<--download> {I<id> | B<all>}]
|
||||
|
||||
B<rspconfig> I<noderange> B<powerrestorepolicy>
|
||||
@ -36,13 +44,9 @@ B<rspconfig> I<noderange> B<powersupplyredundancy>
|
||||
|
||||
B<rspconfig> I<noderange> B<powersupplyredundancy={disabled|enabled}>
|
||||
|
||||
B<rspconfig> I<noderange> B<autoreboot>
|
||||
B<rspconfig> I<noderange> B<timesyncmethod>
|
||||
|
||||
B<rspconfig> I<noderange> B<autoreboot={0|1}>
|
||||
|
||||
B<rspconfig> I<noderange> B<bootmode>
|
||||
|
||||
B<rspconfig> I<noderange> B<bootmode={safe|regular|setup}>
|
||||
B<rspconfig> I<noderange> B<timesyncmethod={manual|ntp}>
|
||||
|
||||
=head2 MPA specific:
|
||||
|
||||
@ -344,23 +348,23 @@ The subnet mask.
|
||||
|
||||
=item B<powerrestorepolicy>
|
||||
|
||||
Display or control BMC Power Restore Policy attribute setting.
|
||||
Display or control BMC Power Restore Policy attribute setting. [OpenBMC]
|
||||
|
||||
=item B<powersupplyredundancy>
|
||||
|
||||
Display or control BMC Power Supply Redundancy attribute setting.
|
||||
Display or control BMC Power Supply Redundancy attribute setting. [OpenBMC]
|
||||
|
||||
=item B<autoreboot>
|
||||
|
||||
Display or control BMC Auto Reboot attribute setting.
|
||||
Display or control BMC Auto Reboot attribute setting. [OpenBMC]
|
||||
|
||||
=item B<bootmode>
|
||||
|
||||
Display or control BMC Boot Mode attribute setting.
|
||||
Display or control BMC Boot Mode attribute setting. [OpenBMC]
|
||||
|
||||
=item B<dump>
|
||||
|
||||
Manage OpenBMC system dumps. If no sub-option is provided, will generate, wait, and download the dump.
|
||||
Generate/Manage BMC system dumps. If no sub-option is provided, will generate, wait, and download the dump. [OpenBMC]
|
||||
|
||||
=over 4
|
||||
|
||||
@ -378,6 +382,10 @@ B<-d> will download a single dump or all generated dumps from the BMC to /var/lo
|
||||
|
||||
=back
|
||||
|
||||
=item B<timesyncmethod>
|
||||
|
||||
Set the method for time synchronization on the BMC. [OpenBMC]
|
||||
|
||||
=item B<network>={[I<ip>],[I<host>],[I<gateway>],[I<netmask>]|*}
|
||||
|
||||
For MPA: get or set the MPA network parameters. If '*' is specified, all parameters are read from the xCAT database.
|
||||
|
@ -638,6 +638,19 @@ my %api_config_info = (
|
||||
always_off => "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOff",
|
||||
},
|
||||
},
|
||||
RSPCONFIG_TIME_SYNC_METHOD => {
|
||||
command => "rspconfig",
|
||||
url => "/time/sync_method",
|
||||
attr_url => "TimeSyncMethod",
|
||||
display_name => "BMC TimeSyncMethod",
|
||||
instruct_msg => "",
|
||||
type => "attribute",
|
||||
subcommand => "timesyncmethod",
|
||||
attr_value => {
|
||||
ntp => "xyz.openbmc_project.Time.Synchronization.Method.NTP",
|
||||
manual => "xyz.openbmc_project.Time.Synchronization.Method.Manual",
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
$::RESPONSE_OK = "200 OK";
|
||||
|
Loading…
x
Reference in New Issue
Block a user