This section describes the status information packet reported from the switch to the controller.
Operation |
XPATH |
---|---|
The packet is actively sent by the switch, and no operation is required. |
/boards-state |
The packet is actively sent by the switch, and no operation is required. |
/port-config-mode-change |
Data requirement
Item |
Data |
Description |
---|---|---|
Switch name |
1 |
- |
Switch role |
master |
|
Switch ESN |
022CDN10xxxxxxxx |
|
Switch registration status |
registered |
Request example: status packet
<boards-state xmlns="urn:huawei:params:xml:ns:yang:huawei-board">
<board>
<name>1</name>
<esn>022CDN10xxxxxxxx</esn>
<role>master</role>
<state>registered</state>
</board>
</boards-state>
Item |
Data |
Description |
---|---|---|
Switch name |
1 |
- |
Switch role |
master |
Request example: notification packet
<board-role-event xmlns="urn:huawei:params:xml:ns:yang:huawei-board">
<board>
<name>1</name>
<event>master</event>
</board>
</board-role-event>
Item |
Data |
Description |
---|---|---|
Switch name |
1 |
- |
Switch registration status |
registered |
Request example: notification packet
<board-state-event xmlns="urn:huawei:params:xml:ns:yang:huawei-board">
<board>
<name>1</name>
<event>registered</event>
<model>S5720I-28X-SI-AC</model>
<mac-address>38:4c:4f:6d:8e:00</mac-address>
<esn>21980107961234567890</esn>
</board>
</board>
</board-state-event>
Item |
Data |
Description |
---|---|---|
Name of the subcard on which the port working mode is changed |
11 |
- |
New port working mode |
25GE: 2 |
Request example: notification packet
<port-config-mode-change xmlns="urn:huawei:params:xml:ns:yang:huawei-board"> <board> <name>11</name> <port-config-mode>25GE: 2</port-config-mode> </board> </port-config-mode-change>