This section provides a sample of configuring the fault indicator status using the config method.
Operation |
XPATH |
---|---|
edit-config:config |
config-fault-light-status/slot-index config-fault-light-status/mode config-fault-light-status/keeptime |
Data Requirements
Item |
Data |
Description |
---|---|---|
Slot ID |
0 |
- |
Fault indicator mode |
under-repair |
- |
Time during which the fault indicator indicates that the device is faulty |
50s |
- |
Request Example
<?xml version="1.0" encoding="UTF-8"?> <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="30"> <dev:config-fault-light-status xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device"> <dev:slot-index>0</dev:slot-index> <dev:mode>under-repair</dev:mode> <dev:keeptime>600</dev:keeptime> </dev:config-fault-light-status> </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="30"> <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="30"> <rpc-error> <error-path>/huawei-device:config-fault-light-status/keeptime</error-path> <error-message>When condition "../mode != 'normal'" not satisfied.</error-message> </rpc-error> </rpc-reply>