This section provides a sample of configuring on-demand frame delay measurement using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Item |
Data |
Description |
---|---|---|
MD name |
md_test |
Set the MD name to md_test. |
MA name |
ma_test |
Set the MA name to ma_test. |
MEP ID |
10 |
Set the MEP ID to 10. |
RMEP ID |
20 |
Set the RMEP ID to 20. |
Frame delay measurement type |
one-way |
Configure one-way frame delay measurement. |
Packet sending interval |
1000 |
Set the packet sending interval to 1000 ms. |
Number of sent packets |
10 |
Set the number of sent packets to 10. |
<?xml version="1.0" encoding="UTF-8"?> <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="58"> <huawei-cfm:delay-measure-send xmlns:huawei-cfm="urn:huawei:params:xml:ns:yang:huawei-cfm"> <huawei-cfm:md>md_test</huawei-cfm:md> <huawei-cfm:ma>ma_test</huawei-cfm:ma> <huawei-cfm:way>one-way</huawei-cfm:way> <huawei-cfm:send-mep-id>10</huawei-cfm:send-mep-id> <huawei-cfm:remote-mep-id>20</huawei-cfm:remote-mep-id> <huawei-cfm:interval>1000</huawei-cfm:interval> <huawei-cfm:count>10</huawei-cfm:count> </huawei-cfm:delay-measure-send> </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="58"> <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="58"> <rpc-error xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-app-tag>1</error-app-tag> <error-message>Service process failed.</error-message> </rpc-error> </rpc-reply>