This section provides a sample of configuring multicast 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. |
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="58">
<huawei-cfm:mac-multicast-ping 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:mep-id>1</huawei-cfm:mep-id>
</huawei-cfm:mac-multicast-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-multicast-ping xmlns="urn:huawei:params:xml:ns:yang:huawei-cfm">
<test-data>
<index>1</index>
<mac-address>34a2-a2cf-****</mac-address>
<mep-id>2</mep-id>
<time>5</time>
</test-data>
<test-data>
<index>2</index>
<mac-address>34a2-a2cf-****</mac-address>
<mep-id>2</mep-id>
<time>4</time>
</test-data>
<test-data>
<index>3</index>
<mac-address>34a2-a2cf-****</mac-address>
<mep-id>2</mep-id>
<time>4</time>
</test-data>
<send-packets>3</send-packets>
<receive-packets>3</receive-packets>
<minimum-time>4</minimum-time>
<maximum-time>5</maximum-time>
<average-time>4</average-time>
</mac-multicast-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>