< Home

Creating an MA

This section provides a sample of creating an MA using the edit-config method.

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