【已评审】Redfish 接口在动态模式获取DNS地址下设置DNS IP地址新增错误引擎

背景介绍

Redfish接口EthernetInterfaces资源和NICs资源(Oem定义)NameServers属性和StaticNameServers属性在DNS服务器动态获取模式下为只读。设置属性前会检查当前DNS服务器IP获取模式,若为动态则设置失败,需要抛出对应错误。

决策点:Redfish EthernetInterfaces和NICs接口在动态模式下设置DNS IP地址新增错误引擎

  • 涉及接口
    /redfish/v1/Managers/{managerid}/Ethernetinterfaces/{ethernetinterface}
    /redfish/v1/Managers/{managerid}/NICs/{nicid}

  • 操作类型:PATCH

  • 应用场景
    Oem.{{OemIdentifier}}.DNSAddressOrigin取值为IPv4或IPv6时,表示当前DNS服务器IP为动态模式获取(静态模式为Static)。此时PATCH NameServers或StaticNameServers需要抛错。

  • 新增错误消息

"ModifyFailedWithDNSAutoMode": {
  "Description": "Failed to modify the DNS server address due to the DNS address mode.",
  "Message": "Failed to modify the DNS server address because the DNS address mode is the automatic mode.",
  "Severity": "Warning",
  "NumberOfArgs": 0,
  "Resolution": "Set DNS address mode to the static mode and try again.",
  "HttpStatusCode": 400,
  "IpmiCompletionCode": "0xFF",
  "SnmpStatusCode": 17,
  "TraceDepth": 0
}

评审结论

同意新增错误消息ModifyFailedWithDNSAutoMode,表示DNS服务器在动态获取模式下,不允许用户修改DNS服务器地址

遗留问题

无