< Home

Configuring the Reserved Power for a PoE Device

This section provides a sample of configuring the reserved power for a PoE device using the edit-config method.

Table 1 Configuring the reserved PoE power

Operation

XPATH

edit-config /huawei-board:boards/board/huawei-poe:poe/reserved-power

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="5" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
 <edit-config>
  <target>
   <running/>
  </target>
  <config>
   <board:boards
xmlns:board="urn:huawei:params:xml:ns:yang:huawei-board">
    <board:board>
     <board:name>0</board:name>
     <huawei-poe:poe
xmlns:huawei-poe="urn:huawei:params:xml:ns:yang:huawei-poe">
      <huawei-poe:reserved-power>10</huawei-poe:reserved-power>
     </huawei-poe:poe>
    </board:board>
   </board:boards>
  </config>
 </edit-config>
</rpc>

Response Example

Sample of successful response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
message-id="5">
 <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
message-id="5">
 <rpc-error>
  <error-app-tag>-1</error-app-tag>
  <error-message>Service
process failed.</error-message>
  <error-info>Error on node /huawei-board:boards/board[name="0"]/huawei-poe:poe/reserved-power</error-info>
 </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >