< Home

Configuring an Interface to Send EFM Remote Loopback Packets

This section provides a sample of configuring an interface to send EFM remote loopback packets using the rpc method.

Table 1 Configuring an interface to send EFM remote loopback packets

Operation

XPATH

rpc

  • /huawei-efm/test-packet/interface

  • /huawei-efm/test-packet/packet-number

  • /huawei-efm/test-packet/packet-size

Data Requirements

Item

Data

Description

Outbound interface that sends EFM remote loopback packets

GigabitEthernet0/0/1

Configure GigabitEthernet0/0/1 to send EFM remote loopback packets.

Number of sent EFM remote loopback packets

5

Set the number of EFM remote loopback packets to 5.

Size of sent EFM remote loopback packets

100

Set the size of EFM remote loopback packets to 100 bytes.

Request Example

<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="53">
  <huawei-efm:test-packet xmlns:huawei-efm="urn:huawei:params:xml:ns:yang:huawei-efm">
    <huawei-efm:interface>GigabitEthernet0/0/1</huawei-efm:interface>
    <huawei-efm:packet-number>5</huawei-efm:packet-number>
    <huawei-efm:packet-size>100</huawei-efm:packet-size>
  </huawei-efm:test-packet>
</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="53">
  <ok/>
</rpc-reply>

Sample of failed response

</rpc-reply>
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="53">
  <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 >