This section provides a sample of configuring 802.1ag MAC ping using the rpc method.
Operation |
XPATH |
---|---|
rpc |
|
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 |
1 |
Set the MEP ID to 1. |
RMEP ID |
10 |
Set the RMEP ID 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:mac-8021ag-ping xmlns:huawei-cfm="urn:huawei:params:xml:ns:yang:huawei-cfm"> <huawei-cfm:mep-id>1</huawei-cfm:mep-id> <huawei-cfm:md>md_test</huawei-cfm:md> <huawei-cfm:ma>ma_test</huawei-cfm:ma> <huawei-cfm:remote-mep-id>10</huawei-cfm:remote-mep-id> </huawei-cfm:mac-8021ag-ping> </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"> <mac-8021ag-ping xmlns="urn:huawei:params:xml:ns:yang:huawei-cfm"> <test-data> <index>1</index> <mac-address>34a2-a2cf-****</mac-address> <data-bytes>95</data-bytes> <time>3</time> </test-data> <test-data> <index>2</index> <mac-address>34a2-a2cf-****</mac-address> <data-bytes>95</data-bytes> <time>4</time> </test-data> <test-data> <index>3</index> <mac-address>34a2-a2cf-****</mac-address> <data-bytes>95</data-bytes> <time>3</time> </test-data> <test-data> <index>4</index> <mac-address>34a2-a2cf-****</mac-address> <data-bytes>95</data-bytes> <time>3</time> </test-data> <test-data> <index>5</index> <mac-address>34a2-a2cf-****</mac-address> <data-bytes>95</data-bytes> <time>3</time> </test-data> <send-packets>5</send-packets> <receive-packets>5</receive-packets> <minimum-time>3</minimum-time> <maximum-time>4</maximum-time> <average-time>3</average-time> </mac-8021ag-ping> </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> <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>