< Home

Checking the Port Working Mode of the Subcard

This section provides a sample of checking the port working mode of a subcard using the get method.

Table 1 Checking the port working mode of the subcard

Operation

XPATH

get

/boards-state/board/port-config-mode

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get>
    <filter type="subtree">
      <board:boards-state xmlns:board="urn:huawei:params:xml:ns:yang:huawei-board">
        <board:board>
          <board:name/>
          <board:port-config-mode/>
        </board:board>
      </board:boards-state>
    </filter>
  </get>
</rpc>

Response Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <data>
    <boards-state xmlns="urn:huawei:params:xml:ns:yang:huawei-board">
      <board>
        <name>11</name>
        <port-config-mode>10GE: 8</port-config-mode>
      </board>
      <board>
        <name>34</name>
        <port-config-mode>NONE</port-config-mode>
      </board>
      <board>
        <name>43</name>
        <port-config-mode>25GE: 2</port-config-mode>
      </board>
    </boards-state>
  </data>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic