< Home

Configuring Internal Loopback Detection on an Interface

This section describes how to configure internal loopback detection on an interface using the rpc method.

Table 1 Configuring internal loopback detection on an interface

Operation

XPATH

rpc

/huawei-ethernet:port-loopbacktest-internal/input/test-ifname

Data requirement

Item

Data

Description

Interface

GigabitEthernet0/0/1

Internal loopback detection is configured on the interface.

Request example

<?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>

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="b05d8080-49dc-11e7-85f6-f0bc1781395f">
  <data>
    <test_result>0</test_result>
  </data>
</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="cfc47140-49dc-11e7-8c66-f0bc1781395f">
  <rpc-error>
    <error-message>valid user-defined rpc fail.</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >