This section provides a sample of configuring the VLAN ID of outgoing AIS packets using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Item |
Data |
Description |
---|---|---|
MD name |
md_test |
Create an MD named md_test. |
MA name |
ma_test |
Create an MA named ma_test. |
Index of the VLAN ID in AIS packets |
1 |
Set the index of the VLAN range in AIS packets to 1. |
MEP ID |
1 |
Set the MEP ID to 1. |
VLAN ID in outgoing AIS packets |
100 |
Set the VLAN ID in outgoing AIS packets to 100. |
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="7" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <huawei-cfm:cfm xmlns:huawei-cfm="urn:huawei:params:xml:ns:yang:huawei-cfm"> <huawei-cfm:md> <huawei-cfm:md-name>md_test</huawei-cfm:md-name> <huawei-cfm:ma> <huawei-cfm:ma-name>ma_test</huawei-cfm:ma-name> <huawei-cfm:ais> <huawei-cfm:mep-vlan> <huawei-cfm:index>1</huawei-cfm:index> <huawei-cfm:mep-id>1</huawei-cfm:mep-id> <huawei-cfm:vlan>100</huawei-cfm:vlan> </huawei-cfm:mep-vlan> </huawei-cfm:ais> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="7"> <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="7"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-message>parse rpc config error.</error-message> </rpc-error> </rpc-reply>