NetworkBondings
更新时间: 2026/06/26
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Systems/system_id/NetworkBondings/bond_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 指定Bond资源模型的OData描述信息 |
| @odata.id | string | true | - | 指定Bond资源的访问路径 |
| @odata.type | string | true | - | 指定Bond资源的类型 |
| Id | string | true | - | 指定Bond资源的ID |
| Name | string | true | - | 指定Bond资源的名称 |
| BondingType | number | true | - | Bond类型 ● 0:balance-rr ● 1:active-backup ● 2:balance-xor ● 3:broadcast ● 4:802.3ad ● 5:balance-tlb ● 6:balance-alb |
| WorkMode | string | true | - | 指定Bond资源的工作模式 |
| MIILinkMonitoringFrequencyMS | number | false | - | 链路监控频率,单位是毫秒,取值范围:0-999999999 |
| BondedInterfaces | array | true | - | 绑定的物理网口资源的访问路径 |
| RelatedInterface | object | true | - | 关联的以太网资源访问路径 |
| #NetworkBonding.Configure | object | true | - | 配置Bond操作 |
| target | string | true | - | 配置Bond操作的访问路径 |
| Redfish.ActionInfo | string | true | - | 操作信息查询路径 |
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_idX-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_id | Bond资源的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.ConfigureX-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