This section provides a sample of configuring 802.1ag MAC trace 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-trace 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-trace> </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-trace xmlns="urn:huawei:params:xml:ns:yang:huawei-cfm"> <test-data> <hops>1</hops> <ingress-mac>34a2-a2cf-****</ingress-mac> <ingress-port>GigabitEthernet0/0/2</ingress-port> <ingress-action>IngOK</ingress-action> <relay-action>RlyHit</relay-action> <egress-mac>--</egress-mac> <egress-port>--</egress-port> <egress-action>--</egress-action> <ismep>IsMep</ismep> </test-data> </mac-8021ag-trace> </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>