This section provides a sample of configuring an interface to send EFM remote loopback packets using the rpc method.
Operation |
XPATH |
---|---|
rpc |
|
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. |
<?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>
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>