< Home

Reporting Device Status Information

This section describes the status information packet reported from the switch to the controller.

Table 1 Status information report

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

Table 2 Data reported after the switch is connected to the controller

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> 
Table 3 Data reported after the role changes

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>
Table 4 Data reported after the registration status changes

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>
Table 5 Data reported when the working mode of ports on the subcard is changed

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>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >