CFM
This section describes the configuration model of CFM and provides examples of XML packets.
- Data Model
- Enabling CFM Globally
- Creating an MD
- Creating an MA
- Associating a VLAN with an MA
- Configuring a MEP
- Configuring an RMEP
- Configuring a MIP
- Configuring Proactive One-way Frame Delay Measurement
- Configuring Proactive Two-way Frame Delay Measurement
- Configuring On-demand Frame Delay Measurement
- Checking Statistics About One-way Frame Delay Measurement
- Checking Statistics About Two-way Frame Delay Measurement
- Enabling AIS
- Configuring the AIS PDU Sending Interval
- Setting the Level of AIS PDUs to Be Sent
- Configuring the VLAN ID of Outgoing AIS Packets
- Enabling Alarm Suppression in an MA
- Configuring an MA to Monitor an Interface
- Configuring 802.1ag MAC Ping
- Configuring 802.1ag MAC Trace
- Configuring Multicast MAC Ping
Data Model
The data model files matching CFM are huawei-cfm.yang and ietf-interfaces.yang.
Object |
Description |
Value |
Remarks |
---|---|---|---|
/huawei-cfm/cfm/enabled |
Indicates whether CFM is enabled globally. |
The value is of the Boolean type:
|
|
/huawei-cfm/cfm/md/md-name |
Indicates the MD name. |
The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/cfm/md/level |
Indicates the MD level. |
The value is an integer that ranges from 0 to 7. A larger value indicates a higher MD priority. |
NA |
/huawei-cfm/cfm/md/md-format/dns |
Indicates the DNS name used as the MD name carried in packets. |
The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/cfm/md/md-format/mac-address |
Indicates an MD name carried in packets. The value is composed of the MAC address plus a two-digit integer, and is in the format of H-H-H:U<0 to 65535>. An H is a hexadecimal number of 4 digits and the U is an integer. For example, the value is 0001-0001-0001:1. |
The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/cfm/md/md-format/no-md-name |
Indicates that the MA ID field of a sent packet does not contain the MD Name field. |
NA |
NA |
/huawei-cfm/cfm/md/md-format/string |
Indicates an MD name as a character string. |
The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/cfm/md/ma/ma-name |
Indicates the MA name. |
The value is a string of case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD cannot exceed 44 characters. |
NA |
/huawei-cfm/cfm/md/ma/ma-format/icc-based |
Indicates an ICC-based MA name carried in CCMs to be sent. |
The value is a string of 1 to 13 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/cfm/md/ma/ma-format/string |
Indicates a string-based MA name carried in CCMs to be sent. |
The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/cfm/md/ma/map-vlan-id |
Indicates the VLAN associated with an MA. |
The value is an integer that ranges from 1 to 4094. |
NA |
/huawei-cfm/cfm/md/ma/local-mep/mep-id |
Indicates the MEP ID when a MEP is created. |
The value is an integer that ranges from 1 to 8191. |
After a MEP is created, the ID of the MEP can be used only when you configure one-way frame delay measurement, AIS, and two-way frame delay measurement. Similarly, before you delete a MEP, ensure that no MEP ID is configured for one-way frame delay measurement, AIS, and two-way frame delay measurement. |
/huawei-cfm/cfm/md/ma/local-mep/pe-vlan-id |
Indicates the VLAN ID in the outer tag of a specified PE when a MEP is created. |
The value is an integer that ranges from 1 to 4094. |
NA |
/huawei-cfm/cfm/md/ma/local-mep/ce-vlan-id |
Indicates the VLAN ID in the inner tag of a specified CE when a MEP is created. |
The value is an integer that ranges from 1 to 4094. |
NA |
/huawei-cfm/cfm/md/ma/local-mep/interface |
Indicates the interface on which a MEP is configured. |
The value must be set according to the device configuration. |
NA |
/huawei-cfm/cfm/md/ma/local-mep/inward |
Indicates an inward-facing MEP. |
The value is of the Boolean type:
|
NA |
/huawei-cfm/cfm/md/ma/local-mep/outward |
Indicates an outward-facing MEP. |
The value is of the Boolean type:
|
NA |
/huawei-cfm/cfm/md/ma/local-mep/mep-ccm-send-enabled |
Indicates whether the MEP is enabled to send CCMs. |
The value is of the Boolean type:
|
NA |
/huawei-cfm/cfm/md/ma/remote-mep/remote-mep-id |
Indicates that an RMEP is configured in an MA. |
The value is an integer that ranges from 1 to 8191. |
After an RMEP is created, the ID of the RMEP can be used only when you configure one-way frame delay measurement and two-way frame delay measurement. Similarly, before you delete an RMEP, ensure that no RMEP ID is configured for one-way frame delay measurement and two-way frame delay measurement. |
/huawei-cfm/cfm/md/ma/remote-mep/mac-address |
Indicates the MAC address of an RMEP. |
The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. |
NA |
/huawei-cfm/cfm/md/ma/remote-mep/mep-ccm-receive-enabled |
Indicates whether the MEP is enabled to receive CCMs from an RMEP in the same MA. |
The value is of the Boolean type:
|
NA |
/ietf-interfaces/interfaces/interface/huawei-cfm:cfm/mip-level |
Indicates that a MIP is created manually on the interface and the MIP level is specified. |
The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/one-way/threshold |
Indicates the alarm threshold for one-way frame delay measurement. |
The value is an integer that ranges from 1 to 4294967295, in microseconds. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/one-way/receive-mep/mep-id |
Indicates the MEP ID in received CCMs for one-way frame delay measurement. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/one-way/receive-mep/continual |
Indicates that the RMEP enabled with proactive one-way frame delay measurement in an MA is configured to receive DM frames. |
The value is of the Boolean type:
|
NA |
/huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/mep-id |
Indicates the MEP ID for one-way frame delay measurement. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/remote-mep-id |
Indicates the ID of an RMEP enabled with one-way frame delay measurement. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/mac-address |
Indicates the MAC address of an RMEP enabled with one-way frame delay measurement. |
The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/interval |
Indicates the interval at which DM frames are sent. |
The value is 1000, in milliseconds. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/continual |
Indicates proactive one-way frame delay measurement. |
The value is of the Boolean type:
|
NA |
/huawei-cfm/cfm/md/ma/delay-measure/two-way/threshold |
Indicates the alarm threshold for two-way frame delay measurement. |
The value is an integer that ranges from 1 to 4294967295, in microseconds. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/two-way/receive-mep |
Indicates that the RMEP is configured to receive DMMs for two-way frame delay measurement. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/two-way/send-mep/mep-id |
Indicates the MEP ID for two-way frame delay measurement. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/two-way/send-mep/remote-mep-id |
Indicates the ID of an RMEP enabled with two-way frame delay measurement. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/two-way/send-mep/mac-address |
Indicates the MAC address of an RMEP enabled with two-way frame delay measurement. |
The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/two-way/send-mep/interval |
Indicates the interval at which DMMs are sent. |
The value is 30000, in milliseconds. |
NA |
/huawei-cfm/cfm/md/ma/delay-measure/two-way/send-mep/continual |
Indicates proactive two-way frame delay measurement. |
The value is of the Boolean type:
|
NA |
/huawei-cfm/delay-measure-send/md |
Indicates the MD for on-demand frame delay measurement. |
The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/delay-measure-send/ma |
Indicates the MA for on-demand frame delay measurement. |
The value is a string of case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD cannot exceed 44 characters. |
NA |
/huawei-cfm/delay-measure-send/send-mep-id |
Indicates the ID of a MEP. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/delay-measure-send/remote-mep-id |
Indicates the ID of an RMEP. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/delay-measure-send/mac-address |
Indicates the MAC address of an RMEP. |
The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. |
NA |
/huawei-cfm/delay-measure-send/way |
Indicates on-demand frame delay measurement type. |
The value is of the enumerated type:
|
NA |
/huawei-cfm/delay-measure-send/interval |
Indicates the packet sending interval when on-demand frame delay measurement is used. |
The value is either 1000 or 10000, in milliseconds. |
NA |
/huawei-cfm/delay-measure-send/count |
Indicates the number of sent packets when on-demand frame delay measurement is used. |
The value is an integer that ranges from 1 to 60. |
NA |
/huawei-cfm/cfm-statistics/y1731-statistics/oneway-statistics |
Indicates that statistics about one-way frame delay measurement are queried. |
NA |
NA |
/huawei-cfm/cfm-statistics/y1731-statistics/twoway-statistics |
Indicates that statistics about two-way frame delay measurement are queried. |
NA |
NA |
/huawei-cfm/cfm/md/ma/ais/enabled |
Indicates whether AIS is enabled in an MA. |
The value is of the Boolean type:
|
|
/huawei-cfm/cfm/md/ma/ais/interval |
Indicates the interval at which a MEP in an MA sends AIS PDUs to a MEP in a higher-level MA. |
The value is of the enumerated type:
|
NA |
/huawei-cfm/cfm/md/ma/ais/level |
Indicates the level of AIS PDUs to be sent by a MEP in an MA. |
The value is an integer that ranges from 0 to 7. |
NA |
/huawei-cfm/cfm/md/ma/ais/link-status-interface |
Indicates the name of an interface when AIS is configured to monitor the interface. |
The value must be set according to the device configuration. |
NA |
/huawei-cfm/cfm/md/ma/ais/suppress-alarm |
Indicates whether AIS alarm suppression is enabled. |
The value is of the Boolean type:
|
NA |
/huawei-cfm/cfm/md/ma/ais/mep-vlan/index |
Indicates the index of VLANs in AIS PDUs. |
The value is an integer that ranges from 1 to 4294967295. |
NA |
/huawei-cfm/cfm/md/ma/ais/mep-vlan/mep-id |
Indicates the ID of a MEP. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/cfm/md/ma/ais/mep-vlan/vlan |
Indicates the VLAN ID in AIS PDUs. |
The value is an integer that ranges from 1 to 4094. |
NA |
/huawei-cfm/cfm/md/ma/ais/mep-vlan/pe-vid |
Indicates the VLAN ID in the outer tag of a VLAN frame. |
The value is an integer that ranges from 1 to 4094. |
NA |
/huawei-cfm/cfm/md/ma/ais/mep-vlan/ce-vid |
Indicates the VLAN ID in the inner tag of a VLAN frame. |
The value is an integer that ranges from 1 to 4094. |
NA |
/huawei-cfm/mac-8021ag-ping/md |
Indicates the name of an MD. |
The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/mac-8021ag-ping/ma |
Indicates the name of an MA. |
The value is a string of case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD cannot exceed 44 characters. |
NA |
/huawei-cfm/mac-8021ag-ping/mep-id |
Indicates the ID of a MEP. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/mac-8021ag-ping/remote-mep-id |
Indicates the ID of an RMEP. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/mac-8021ag-ping/mac-address |
Indicates the MAC address of the destination node. |
The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. |
NA |
/huawei-cfm/mac-8021ag-ping/packetsize |
Indicates the size of ping packets. |
The value is an integer that ranges from 95 to 9000, in bytes. |
NA |
/huawei-cfm/mac-8021ag-ping/interface |
Indicates the outbound interface that sends ping packets on the local device. |
The value must be set according to the device configuration. |
NA |
/huawei-cfm/mac-8021ag-ping/priority |
Indicates the priority of ping packets. |
The value is an integer that ranges from 0 to 7. |
NA |
/huawei-cfm/mac-8021ag-trace/md |
Indicates the name of an MD. |
The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/mac-8021ag-trace/ma |
Indicates the name of an MA. |
The value is a string of case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD cannot exceed 44 characters. |
NA |
/huawei-cfm/mac-8021ag-trace/mep-id |
Indicates the ID of a MEP. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/mac-8021ag-trace/remote-mep-id |
Indicates the ID of an RMEP. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/mac-8021ag-trace/mac-address |
Indicates the MAC address of the destination node. |
The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. |
NA |
/huawei-cfm/mac-8021ag-trace/interface |
Indicates the outbound interface that sends trace packets. |
The value must be set according to the device configuration. |
NA |
/huawei-cfm/mac-8021ag-trace/ttl |
Indicates the maximum hop of LTMs. |
The value is an integer that ranges from 1 to 255. |
NA |
/huawei-cfm/mac-multicast-ping/md |
Indicates the name of an MD. |
The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). |
NA |
/huawei-cfm/mac-multicast-ping/ma |
Indicates the name of an MA. |
The value is a string of case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD cannot exceed 44 characters. |
NA |
/huawei-cfm/mac-multicast-ping/mep-id |
Indicates the ID of a MEP. |
The value is an integer that ranges from 1 to 8191. |
NA |
/huawei-cfm/mac-multicast-ping/priority |
Indicates the priority of LBMs. |
The value is an integer that ranges from 0 to 7. |
NA |
Enabling CFM Globally
This section provides a sample of enabling CFM globally using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
/huawei-cfm/cfm/enabled |
Data Requirements
Item |
Data |
Description |
---|---|---|
Global CFM status |
true |
Enable CFM globally. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="1" 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:enabled>true</huawei-cfm:enabled> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
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="1"> <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="1"> <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>
Creating an MD
This section provides a sample of creating an MD using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
Item |
Data |
Description |
---|---|---|
Global CFM status |
true |
Enable CFM globally. |
MD name |
mdccl |
Create an MD named mdccl. |
MD level |
3 |
Set the MD level to 3. |
MD format |
string_example |
Specify an MD name as a character string. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="3" 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:enabled>true</huawei-cfm:enabled> <huawei-cfm:md xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="create"> <huawei-cfm:md-name>mdccl</huawei-cfm:md-name> <huawei-cfm:level>3</huawei-cfm:level> <huawei-cfm:md-format> <huawei-cfm:string>string_example</huawei-cfm:string> </huawei-cfm:md-format> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
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="3"> <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="3"> <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>
Creating an MA
This section provides a sample of creating an MA using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
Item |
Data |
Description |
---|---|---|
Global CFM status |
true |
Enable CFM globally. |
MD name |
md_test |
Set the MD name to md_test. |
MA name |
ma_test |
Create an MA named ma_test. |
MA format |
string_test |
Specify a string-based MA name carried in CCMs to be sent. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="23" 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:enabled>true</huawei-cfm:enabled> <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:ma-format> <huawei-cfm:string>string_test</huawei-cfm:string> </huawei-cfm:ma-format> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="23"> <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="23"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message>Service process failed.</error-message> <error-info>Error on node /huawei-cfm:cfm/md[md-name="md_test"]/ma[ma-name="ma_test"]</error-info> </rpc-error> </rpc-reply>
Associating a VLAN with an MA
This section provides a sample of associating a VLAN with an MA using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
Item |
Data |
Description |
---|---|---|
Global CFM status |
true |
Enable CFM globally. |
MD name |
md_test |
Set the MD name to md_test. |
MA name |
ma_test |
Set the MA name to ma_test. |
VLAN ID |
100 |
Associate VLAN 100 with the MA. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="26" 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:enabled>true</huawei-cfm:enabled> <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:map-vlan-id>100</huawei-cfm:map-vlan-id> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="26"> <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="26"> <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>
Configuring a MEP
This section provides a sample of configuring a MEP using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
Item |
Data |
Description |
---|---|---|
Global CFM status |
true |
Enable CFM globally. |
MD name |
md_test |
Set the MD name to md_test. |
MA name |
ma_test |
Set the MA name to ma_test. |
VLAN ID |
100 |
Associate VLAN 100 with the MA. |
MEP ID |
10 |
Create MEP 10. |
MEP type |
true |
Specify an inward-facing MEP. |
Whether the MEP is enabled to send CCMs |
true |
Enable the MEP in an MA to send CCMs. |
Interface name |
GigabitEthernet1/0/1 |
Specify the interface on which a MEP is configured. |
Request Example
<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="31" 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:enabled>true</huawei-cfm:enabled>
<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:map-vlan-id>100</huawei-cfm:map-vlan-id>
<huawei-cfm:local-mep>
<huawei-cfm:mep-id>10</huawei-cfm:mep-id>
<huawei-cfm:mep-ccm-send-enabled>true</huawei-cfm:mep-ccm-send-enabled>
<huawei-cfm:interface>GigabitEthernet1/0/1</huawei-cfm:interface>
<huawei-cfm:inward>true</huawei-cfm:inward>
</huawei-cfm:local-mep>
</huawei-cfm:ma>
</huawei-cfm:md>
</huawei-cfm:cfm>
</config>
</edit-config>
</rpc>
Response example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="31"> <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="31"> <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>
Configuring an RMEP
This section provides a sample of configuring an RMEP using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
RMEP ID |
20 |
Set the RMEP ID to 20. |
Whether the MEP is enabled to receive CCMs sent by the RMEP |
true |
Enable the MEP to receive CCMs sent by the RMEP. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="22" 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:remote-mep> <huawei-cfm:remote-mep-id>20</huawei-cfm:remote-mep-id> <huawei-cfm:mep-ccm-receive-enabled>true</huawei-cfm:mep-ccm-receive-enabled> </huawei-cfm:remote-mep> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="22"> <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="22"> <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>
Configuring a MIP
This section provides a sample of configuring a MIP using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
Item |
Data |
Description |
---|---|---|
Interface name |
GigabitEthernet1/0/1 |
Manually create a MIP on GigabitEthernet1/0/1. |
MIP level |
3 |
Set the MIP level to 3. |
Request Example
<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<if:interfaces xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces">
<if:interface>
<if:name>GigabitEthernet1/0/1</if:name>
<huawei-cfm:cfm xmlns:huawei-cfm="urn:huawei:params:xml:ns:yang:huawei-cfm">
<huawei-cfm:mip-level>3</huawei-cfm:mip-level>
</huawei-cfm:cfm>
</if:interface>
</if:interfaces>
</config>
</edit-config>
</rpc>
Response example
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="1"> <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="1"> <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>
Configuring Proactive One-way Frame Delay Measurement
This section provides a sample of configuring proactive one-way frame delay measurement using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
Alarm threshold for one-way frame delay measurement |
100 |
Set the alarm threshold for one-way frame delay measurement to 100. |
MEP ID in sent packets |
1 |
Set the MEP ID in sent packets to 1. |
Continuous packet sending |
true |
Specify continuous packet sending. |
RMEP ID |
10 |
Set the RMEP ID to 10. |
DM frame sending interval |
1000 |
Set the DM frame sending interval to 1000 ms. |
Continuous packet receiving |
true |
Specify continuous packet receiving. |
MEP ID in received packets |
1 |
Set the MEP ID in received packets to 1. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="9" 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:delay-measure> <huawei-cfm:one-way> <huawei-cfm:threshold>100</huawei-cfm:threshold> <huawei-cfm:send-mep> <huawei-cfm:mep-id>1</huawei-cfm:mep-id> <huawei-cfm:continual>true</huawei-cfm:continual> <huawei-cfm:remote-mep-id>10</huawei-cfm:remote-mep-id> <huawei-cfm:interval>1000</huawei-cfm:interval> </huawei-cfm:send-mep> <huawei-cfm:receive-mep> <huawei-cfm:mep-id>1</huawei-cfm:mep-id> <huawei-cfm:continual>true</huawei-cfm:continual> </huawei-cfm:receive-mep> </huawei-cfm:one-way> </huawei-cfm:delay-measure> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
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="9"> <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="9"> <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>
Configuring Proactive Two-way Frame Delay Measurement
This section provides a sample of configuring proactive two-way frame delay measurement using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
Alarm threshold for two-way frame delay measurement |
1000 |
Set the alarm threshold for two-way frame delay measurement to 100. |
MEP ID in sent packets |
1 |
Set the MEP ID in sent packets to 1. |
Proactive frame delay measurement |
true |
Specify proactive frame delay measurement. |
RMEP ID |
10 |
Set the RMEP ID to 10. |
DMM sending interval |
30000 |
Set the DMM sending interval to 30000 ms. |
MEP ID in received packets |
1 |
Set the MEP ID in received packets to 1. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="12" 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:delay-measure> <huawei-cfm:two-way> <huawei-cfm:threshold>1000</huawei-cfm:threshold> <huawei-cfm:send-mep> <huawei-cfm:mep-id>1</huawei-cfm:mep-id> <huawei-cfm:continual>true</huawei-cfm:continual> <huawei-cfm:remote-mep-id>10</huawei-cfm:remote-mep-id> <huawei-cfm:interval>30000</huawei-cfm:interval> </huawei-cfm:send-mep> <huawei-cfm:receive-mep>1</huawei-cfm:receive-mep> </huawei-cfm:two-way> </huawei-cfm:delay-measure> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
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="12"> <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="12"> <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>
Configuring On-demand Frame Delay Measurement
This section provides a sample of configuring on-demand frame delay measurement using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
Request Example
<?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>
Response example
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>
Checking Statistics About One-way Frame Delay Measurement
This section provides a sample of checking statistics about one-way frame delay measurement using the get method.
Operation |
XPATH |
---|---|
get |
/huawei-cfm/cfm-statistics/y1731-statistics/oneway-statistics |
Data Requirements
NoneRequest Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="28" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get> <filter type="subtree"> <huawei-cfm:cfm-statistics xmlns:huawei-cfm="urn:huawei:params:xml:ns:yang:huawei-cfm"> <huawei-cfm:y1731-statistics> <huawei-cfm:oneway-statistics/> </huawei-cfm:y1731-statistics> </huawei-cfm:cfm-statistics> </filter> </get> </rpc>
Response example
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="28"> <data> <cfm-statistics xmlns="urn:huawei:params:xml:ns:yang:huawei-cfm"> <y1731-statistics> <oneway-statistics> <md>md_test</md> <ma>ma_test</ma> <start-time>-</start-time> <delay-statistics> <index>1</index> <delay-time>591630365</delay-time> <delay-variation-time>0</delay-variation-time> </delay-statistics> <delay-statistics> <index>2</index> <delay-time>591630394</delay-time> <delay-variation-time>29</delay-variation-time> </delay-statistics> <average-delay>591630379</average-delay> <average-delay-variation>29</average-delay-variation> <maximum-delay>591630394</maximum-delay> <maximum-delay-variation>29</maximum-delay-variation> <minimum-delay>591630365</minimum-delay> <minimum-delay-variation>29</minimum-delay-variation> </oneway-statistics> </y1731-statistics> </cfm-statistics> </data> </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="28"> <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>
Checking Statistics About Two-way Frame Delay Measurement
This section provides a sample of checking statistics about two-way frame delay measurement using the get method.
Operation |
XPATH |
---|---|
get |
/huawei-cfm/cfm-statistics/y1731-statistics/twoway-statistics |
Data Requirements
NoneRequest Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="29" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get> <filter type="subtree"> <huawei-cfm:cfm-statistics xmlns:huawei-cfm="urn:huawei:params:xml:ns:yang:huawei-cfm"> <huawei-cfm:y1731-statistics> <huawei-cfm:twoway-statistics/> </huawei-cfm:y1731-statistics> </huawei-cfm:cfm-statistics> </filter> </get> </rpc>
Response example
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="29"> <data> <cfm-statistics xmlns="urn:huawei:params:xml:ns:yang:huawei-cfm"> <y1731-statistics> <twoway-statistics> <md>md_test</md> <ma>ma_test</ma> <start-time>-</start-time> <delay-statistics> <index>1</index> <delay-time>730</delay-time> <delay-variation-time>0</delay-variation-time> </delay-statistics> <delay-statistics> <index>2</index> <delay-time>681</delay-time> <delay-variation-time>49</delay-variation-time> </delay-statistics> <delay-statistics> <index>3</index> <delay-time>695</delay-time> <delay-variation-time>14</delay-variation-time> </delay-statistics> <average-delay>702</average-delay> <average-delay-variation>31</average-delay-variation> <maximum-delay>730</maximum-delay> <maximum-delay-variation>49</maximum-delay-variation> <minimum-delay>681</minimum-delay> <minimum-delay-variation>14</minimum-delay-variation> </twoway-statistics> </y1731-statistics> </cfm-statistics> </data> </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="29"> <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>
Enabling AIS
This section provides a sample of enabling AIS using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
Whether AIS is enabled |
true |
Enable AIS. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="4" 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:enabled>true</huawei-cfm:enabled> </huawei-cfm:ais> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
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="4"> <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="4"> <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>
Configuring the AIS PDU Sending Interval
This section provides a sample of configuring the AIS PDU sending interval using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
AIS PDU sending interval |
one-minute |
Set the AIS PDU sending interval to 1 minute. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="6" 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:interval>one-minute</huawei-cfm:interval> </huawei-cfm:ais> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="6"> <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="6"> <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>
Setting the Level of AIS PDUs to Be Sent
This section provides a sample of setting the level of AIS PDUs to be sent using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
Set the level of AIS PDUs to be sent. |
6 |
Set the level of AIS PDUs to be sent to 6. |
Request Example
<?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:level>6</huawei-cfm:level> </huawei-cfm:ais> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
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>
Configuring the VLAN ID of Outgoing AIS Packets
This section provides a sample of configuring the VLAN ID of outgoing AIS packets using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
Request Example
<?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>
Response Example
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>
Enabling Alarm Suppression in an MA
This section provides a sample of enabling alarm suppression in an MA using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
Alarm suppression in an MA |
true |
Enable alarm suppression in an MA. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="8" 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:suppress-alarm>true</huawei-cfm:suppress-alarm> </huawei-cfm:ais> </huawei-cfm:ma> </huawei-cfm:md> </huawei-cfm:cfm> </config> </edit-config> </rpc>
Response example
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="8"> <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="8"> <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>
Configuring an MA to Monitor an Interface
This section provides a sample of configuring an MA to monitor an interface using the edit-config method.
Operation |
XPATH |
---|---|
edit-config |
|
Data Requirements
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. |
Interface name |
GigabitEthernet1/0/1 |
Configure an MA to monitor GigabitEthernet1/0/1. |
Request Example
<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="6" 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:link-status-interface>GigabitEthernet1/0/1</huawei-cfm:link-status-interface>
</huawei-cfm:ais>
</huawei-cfm:ma>
</huawei-cfm:md>
</huawei-cfm:cfm>
</config>
</edit-config>
</rpc>
Response example
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="6"> <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="6"> <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>
Configuring 802.1ag MAC Ping
This section provides a sample of configuring 802.1ag MAC ping using the rpc method.
Operation |
XPATH |
---|---|
rpc |
|
Data Requirements
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. |
Request Example
<?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>
Response example
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>
Configuring 802.1ag MAC Trace
This section provides a sample of configuring 802.1ag MAC trace using the rpc method.
Operation |
XPATH |
---|---|
rpc |
|
Data Requirements
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. |
Request Example
<?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>
Response example
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>GigabitEthernet1/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>
Configuring Multicast MAC Ping
This section provides a sample of configuring multicast MAC ping using the rpc method.
Operation |
XPATH |
---|---|
rpc |
|
Data Requirements
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. |
Request Example
<?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>
Response example
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>
- Data Model
- Enabling CFM Globally
- Creating an MD
- Creating an MA
- Associating a VLAN with an MA
- Configuring a MEP
- Configuring an RMEP
- Configuring a MIP
- Configuring Proactive One-way Frame Delay Measurement
- Configuring Proactive Two-way Frame Delay Measurement
- Configuring On-demand Frame Delay Measurement
- Checking Statistics About One-way Frame Delay Measurement
- Checking Statistics About Two-way Frame Delay Measurement
- Enabling AIS
- Configuring the AIS PDU Sending Interval
- Setting the Level of AIS PDUs to Be Sent
- Configuring the VLAN ID of Outgoing AIS Packets
- Enabling Alarm Suppression in an MA
- Configuring an MA to Monitor an Interface
- Configuring 802.1ag MAC Ping
- Configuring 802.1ag MAC Trace
- Configuring Multicast MAC Ping