ISSUE
【需求】支持Redfish接口查询NTP Server信息 rackmount #207
评审背景
需求
支持Redfish接口查询 NTPService 信息,Redfish接口/redfish/v1/Managers/1/NtpService
差距
- Redfish NTPService 资源中对于 当前轮询时间 属性不支持
评审点
URI: /redfish/v1/Managers/1/NtpService
操作类型: GET
变化类型: 新增属性
应用场景: redifsh查询当前NTP信息,NTP信息中要包括 当前轮询时间
新增属性信息如下:
| 属性名称 | 属性说明 | 取值类型 | 约束 |
|---|---|---|---|
| CurrentPollingIntervalInSeconds | 当前NTP轮询间隔,单位为秒 | integer null |
NTP开启时如果获取成功,则取值为当前的轮询间隔秒数,如果获取失败则取值为nullNTP关闭时取值为0 |
响应体实例
{
"@odata.context": "/redfish/v1/$metadata#Managers/Members/1/NtpService/$entity",
"@odata.id": "/redfish/v1/Managers/1/NtpService",
"@odata.type": "#HwNtpService.v1_0_0.HwNtpService",
"Description": "NtpService Settings",
"ServiceEnabled": false,
...
...
"CurrentPollingIntervalInSeconds": 60, # 当前的轮询间隔为60秒
...
...
}
}
Schema说明
{
"CurrentPollingIntervalInSeconds": {
"type": "integer",
"readonly": true,
"description": "This is the current interval in seconds of NTP synchronization.",
"longDescription": "The value of this property shall be the current interval in seconds. The current value is within the range of the MaxPollingInterval and MinPollingInterval in seconds."
}
}
评审结论
通过,同意 Redfish NtpService 资源新增属性 CurrentPollingIntervalInSeconds,属性取值类型为 integer,只读属性,表征当前NTP的轮询间隔秒数。