NetworkBondings
更新时间: 2026/06/26
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Systems/system_id/NetworkBondings/bond_id

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-指定Bond资源模型的OData描述信息
@odata.idstringtrue-指定Bond资源的访问路径
@odata.typestringtrue-指定Bond资源的类型
Idstringtrue-指定Bond资源的ID
Namestringtrue-指定Bond资源的名称
BondingTypenumbertrue-Bond类型
● 0:balance-rr
● 1:active-backup
● 2:balance-xor
● 3:broadcast
● 4:802.3ad
● 5:balance-tlb
● 6:balance-alb
WorkModestringtrue-指定Bond资源的工作模式
MIILinkMonitoringFrequencyMSnumberfalse-链路监控频率,单位是毫秒,取值范围:0-999999999
BondedInterfacesarraytrue-绑定的物理网口资源的访问路径
RelatedInterfaceobjecttrue-关联的以太网资源访问路径
#NetworkBonding.Configureobjecttrue-配置Bond操作
targetstringtrue-配置Bond操作的访问路径
Redfish.ActionInfostringtrue-操作信息查询路径

supported_methods

  • GET
  • POST

HTTP methods

GET

命令功能

查询 Bond 资源信息

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/NetworkBondings/bond_id

请求头:


X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
system_id系统资源的ID参见源文件参数说明
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/Systems/system_id/NetworkBondings/bond_id

X-Auth-Token: 123456789***********************

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#Systems/Members/1/NetworkBondings/Members/$entity",
  "@odata.id": "/redfish/v1/Systems/1/NetworkBondings/team03",
  "@odata.type": "#HwNetworkBonding.v1_0_0.HwNetworkBonding",
  "Id": "team03",
  "Name": "bond1",
  "BondingType": 1,
  "WorkMode": "loadbalance",
  "MIILinkMonitoringFrequencyMS": 200,
  "Links": {
    "BondedInterfaces": [
      {
        "@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/mainboardNIC1Port2"
      }
    ],
    "RelatedInterface": {
      "@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/team03"
    }
  },
  "Actions": {
    "#NetworkBonding.Configure": {
      "target": "/redfish/v1/Systems/1/NetworkBondings/team03/Actions/NetworkBonding.Configure",
      "@Redfish.ActionInfo": "/redfish/v1/Systems/1/NetworkBondings/team03/ConfigureActionInfo"
    }
  }
}

响应码:200

POST (ACTION)

Configure

命令功能

配置 Bond

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/NetworkBondings/bond_id/Actions/NetworkBonding.Configure

请求头:


X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{
  "MIILinkMonitoringFrequencyMS": frequency_value
}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
system_id系统资源的ID● 针对机架服务器,取值 为1
● 针对高密服务器,取值 为BladeN(N表示节点 槽位号),例如 “Blade1”
● 针对刀片服务器,取值 可以为BladeN(N表示 计算节点槽位号)或 SwiN(N表示交换模块 槽位号),例如 “Swi1”
● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以 为Enc,表示计算节点 所在的机框资源
● 针对设备U位信息,取 值可以为UN(N表示设 备U位号),例如"U1"
● 针对机柜资源,取值为 Rack
bond_idBond资源的ID合法的Bond ID值
frequency_value链路监控频率的取值取值范围:0-999999999

使用指南

仅支持Atlas系列产品,且需配合iBMA使用,iBMA版本号需大于或等于1.50.831。X86系统是EulerOS且内核版本是3.10.0-327或3.10.0-514。

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/system_id/NetworkBondings/bond_id/Actions/NetworkBonding.Configure

X-Auth-Token: 123456789*********************** Content-Type: header_type

请求消息体:

json
{
  "MIILinkMonitoringFrequencyMS": frequency_value
}

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#TaskService/Tasks/Members/$entity",
  "@odata.type": "#Task.v1_0_2.Task",
  "@odata.id": "/redfish/v1/TaskService/Tasks/1",
  "Id": "1",
  "Name": "Set team03 link monitor frequency",
  "Description": "",
  "TaskState": "Running",
  "TaskStatus": "OK",
  "StartTime": "2018-05-23T02:46:20+00:00",
  "Messages": [],
  "PercentComplete": null,
  "Oem": {
    "Public": {
      "TaskPercentage": null
    }
  }
}

响应码:202