< Home

Configuring an RMEP

This section provides a sample of configuring an RMEP using the edit-config method.

Table 1 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>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >