This section describes how to configure internal loopback detection on an interface using the rpc method.
Operation |
XPATH |
---|---|
rpc |
/huawei-ethernet:port-loopbacktest-internal/input/test-ifname |
Item |
Data |
Description |
---|---|---|
Interface |
GigabitEthernet0/0/1 |
Internal loopback detection is configured on the interface. |
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="b05d8080-49dc-11e7-85f6-f0bc1781395f">
<hw-ethernet:port-loopbacktest-internal xmlns:hw-ethernet="urn:huawei:params:xml:ns:yang:huawei-ethernet">
<hw-ethernet:test-ifname>GigabitEthernet0/0/1</hw-ethernet:test-ifname>
</hw-ethernet:port-loopbacktest-internal>
</rpc>
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="b05d8080-49dc-11e7-85f6-f0bc1781395f"> <data> <test_result>0</test_result> </data> </rpc-reply>
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="cfc47140-49dc-11e7-8c66-f0bc1781395f"> <rpc-error> <error-message>valid user-defined rpc fail.</error-message> </rpc-error> </rpc-reply>