No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S600-E V200R011C10 NETCONF YANG API Reference

This document describes the NETCONF API functions supported by the switch, including the data model and samples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
CFM

CFM

This section describes the configuration model of CFM and provides examples of XML packets.

Data Model

The data model files matching CFM are huawei-cfm.yang and ietf-interfaces.yang.

Table 2-203  CFM data model

Object

Description

Value

Remarks

/huawei-cfm/cfm/enabled

Indicates whether CFM is enabled globally.

The value is of the Boolean type:
  • true: CFM is enabled globally.

  • false: CFM is disabled globally.

  • You can configure other CFM objects only after CFM is enabled globally.

  • Before disabling CFM globally, you need to delete all the configuration of CFM objects.

/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 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 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:
  • true: An inward-facing MEP is created.

  • false: An inward-facing MEP is deleted.

NA

/huawei-cfm/cfm/md/ma/local-mep/outward

Indicates an outward-facing MEP.

The value is of the Boolean type:
  • true: An outward-facing MEP is created.

  • false: An outward-facing MEP is deleted.

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:
  • true: The MEP is enabled to send CCMs.

  • false: The MEP is disabled from sending CCMs.

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:
  • true: The MEP is enabled to receive CCMs from an RMEP in the same MA.

  • false: The MEP is disabled from receiving CCMs from an RMEP in the same MA.

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:
  • true: The RMEP enabled with proactive one-way frame delay measurement in an MA is configured to receive DMMs.

  • false: The RMEP enabled with proactive one-way frame delay measurement in an MA is not configured to receive DMMs.

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:
  • true: Proactive one-way frame delay measurement is specified.

  • false: Proactive one-way frame delay measurement is deleted.

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:
  • true: Proactive two-way frame delay measurement is specified.

  • false: Proactive two-way frame delay measurement is deleted.

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:
  • one-way: One-way frame delay measurement is configured.
  • two-way: Two-way frame delay measurement is configured.

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/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.

Table 2-204  Enabling CFM globally

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.

Table 2-205  Creating an MD

Operation

XPATH

edit-config

  • /huawei-cfm/cfm/enabled

  • /huawei-cfm/cfm/md/md-name

  • /huawei-cfm/cfm/md/level

  • /huawei-cfm/cfm/md/md-format/string

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.

Table 2-206  Creating an MA

Operation

XPATH

edit-config

  • /huawei-cfm/cfm/enabled

  • /huawei-cfm/cfm/md/md-name

  • /huawei-cfm/cfm/md/ma/ma-name

  • /huawei-cfm/cfm/md/ma/ma-format/string

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.

Table 2-207  Associating a VLAN with an MA

Operation

XPATH

edit-config

  • /huawei-cfm/cfm/enabled

  • /huawei-cfm/cfm/md/md-name

  • /huawei-cfm/cfm/md/ma/ma-name

  • /huawei-cfm/cfm/md/ma/map-vlan-id

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.

Table 2-208  Configuring a MEP

Operation

XPATH

edit-config

  • /huawei-cfm/cfm/enabled

  • /huawei-cfm/cfm/md/md-name

  • /huawei-cfm/cfm/md/ma/ma-name

  • /huawei-cfm/cfm/md/ma/map-vlan-id

  • /huawei-cfm/cfm/md/ma/local-mep/mep-id

  • /huawei-cfm/cfm/md/ma/local-mep/interface

  • /huawei-cfm/cfm/md/ma/local-mep/inward

  • /huawei-cfm/cfm/md/ma/local-mep/mep-ccm-send-enabled

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

GigabitEthernet0/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>GigabitEthernet0/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.

Table 2-209  Configuring an RMEP

Operation

XPATH

edit-config

  • /huawei-cfm/cfm/md/md-name

  • /huawei-cfm/cfm/md/ma/ma-name

  • /huawei-cfm/cfm/md/ma/remote-mep/remote-mep-id

  • /huawei-cfm/cfm/md/ma/remote-mep/mep-ccm-receive-enabled

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.

Table 2-210  Configuring a MIP

Operation

XPATH

edit-config

  • /ietf-interfaces/interfaces/interface/name

  • /ietf-interfaces/interfaces/interface/huawei-cfm:cfm/mip-level

Data Requirements

Item

Data

Description

Interface name

GigabitEthernet0/0/1

Manually create a MIP on GigabitEthernet0/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>GigabitEthernet0/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.

Table 2-211  Configuring proactive one-way frame delay measurement

Operation

XPATH

edit-config

  • /huawei-cfm/cfm/md/md-name

  • /huawei-cfm/cfm/md/ma/ma-name

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/receive-mep/mep_id

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/receive-mep/continual

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/threshold

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/mep_id

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/continual

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/interval

  • /huawei-cfm/cfm/md/ma/delay-measure/one-way/send-mep/remote-mep-id

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.

Table 2-212  Configuring proactive two-way frame delay measurement

Operation

XPATH

edit-config

  • /huawei-cfm/cfm/md/md-name

  • /huawei-cfm/cfm/md/ma/ma-name

  • /huawei-cfm/cfm/md/ma/delay-measure/two-way/receive-mep

  • /huawei-cfm/cfm/md/ma/delay-measure/two-way/threshold

  • /huawei-cfm/cfm/md/ma/delay-measure/two-way/send-mep/mep-id

  • /huawei-cfm/cfm/md/ma/delay-measure/two-way/send-mep/continue

  • /huawei-cfm/cfm/md/ma/delay-measure/two-way/send-mep/interval

  • /huawei-cfm/cfm/md/ma/delay-measure/two-way/send-mep/remote-mep-id

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.

Table 2-213  Configuring on-demand frame delay measurement

Operation

XPATH

edit-config

  • /huawei-cfm/delay-measure-send/md

  • /huawei-cfm/delay-measure-send/ma

  • /huawei-cfm/delay-measure-send/send-mep-id

  • /huawei-cfm/delay-measure-send/remote-mep-id

  • /huawei-cfm/delay-measure-send/way

  • /huawei-cfm/delay-measure-send/interval

  • /huawei-cfm/delay-measure-send/count

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.

Table 2-214  Checking statistics about one-way frame delay measurement

Operation

XPATH

get

/huawei-cfm/cfm-statistics/y1731-statistics/oneway-statistics

Data Requirements
None
Request 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.

Table 2-215  Checking statistics about two-way frame delay measurement

Operation

XPATH

get

/huawei-cfm/cfm-statistics/y1731-statistics/twoway-statistics

Data Requirements
None
Request 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>

Configuring 802.1ag MAC Ping

This section provides a sample of configuring 802.1ag MAC ping using the rpc method.

Table 2-216  Configuring 802.1ag MAC ping

Operation

XPATH

rpc

  • /huawei-cfm/mac-8021ag-ping/md

  • /huawei-cfm/mac-8021ag-ping/ma

  • /huawei-cfm/mac-8021ag-ping/mep-id

  • /huawei-cfm/mac-8021ag-ping/remote-mep-id

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">
  <data>
    <mac-multicast-ping xmlns="urn:huawei:params:xml:ns:yang:huawei-cfm"/>
    <test-data>
      <index>1</index>
      <mac-address>e4c2-d1e6-36f2</mac-address>
      <data-bytes>95</data-bytes>
      <time>3</time>
    </test-data>
    <test-data>
      <index>2</index>
      <mac-address>e4c2-d1e6-36f2</mac-address>
      <data-bytes>95</data-bytes>
      <time>2</time>
    </test-data>
    <test-data>
      <index>3</index>
      <mac-address>e4c2-d1e6-36f2</mac-address>
      <data-bytes>95</data-bytes>
      <time>2</time>
    </test-data>
    <test-data>
      <index>4</index>
      <mac-address>e4c2-d1e6-36f2</mac-address>
      <data-bytes>95</data-bytes>
      <time>3</time>
    </test-data>
    <test-data>
      <index>5</index>
      <mac-address>e4c2-d1e6-36f2</mac-address>
      <data-bytes>95</data-bytes>
      <time>4</time>
    </test-data>
    <send-packets>5</send-packets>
    <receive-packets>5</receive-packets>
    <minimum-time>2</minimum-time>
    <maximum-time>4</maximum-time>
    <average-time>2</average-time>
  </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="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.

Table 2-217  Configuring 802.1ag MAC trace

Operation

XPATH

rpc

  • /huawei-cfm/mac-8021ag-trace/md

  • /huawei-cfm/mac-8021ag-trace/ma

  • /huawei-cfm/mac-8021ag-trace/mep-id

  • /huawei-cfm/mac-8021ag-trace/remote-mep-id

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">
  <data>
    <mac-multicast-trace xmlns="urn:huawei:params:xml:ns:yang:huawei-cfm"/>
    <test-data>
      <hops>1</hops>
      <ingress-mac>e4c2-d1e6-36f2</ingress-mac>
      <ingress-port>GigabitEthernet0/0/1</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>
  </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="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.

Table 2-218  Configuring multicast MAC ping

Operation

XPATH

rpc

  • /huawei-cfm/mac-multicast-ping/md

  • /huawei-cfm/mac-multicast-ping/ma

  • /huawei-cfm/mac-multicast-ping/mep-id

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">
  <data>
    <mac-multicast-ping xmlns="urn:huawei:params:xml:ns:yang:huawei-cfm"/>
    <test-data>
      <index>1</index>
      <mac-address>e4c2-d1e6-36f2</mac-address>
      <mep-id>10</mep-id>
      <time>4</time>
    </test-data>
    <test-data>
      <index>2</index>
      <mac-address>e4c2-d1e6-36f2</mac-address>
      <mep-id>10</mep-id>
      <time>3</time>
    </test-data>
    <test-data>
      <index>3</index>
      <mac-address>e4c2-d1e6-36f2</mac-address>
      <mep-id>10</mep-id>
      <time>4</time>
    </test-data>
    <send-packets>3</send-packets>
    <receive-packets>3</receive-packets>
    <minimum-time>3</minimum-time>
    <maximum-time>4</maximum-time>
    <average-time>3</average-time>
  </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="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>
Translation
Download
Updated: 2019-03-30

Document ID: EDOC1000178028

Views: 4490

Downloads: 0

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next