< Home

Configuring an EFM Working Mode on an Interface

This section provides a sample of configuring an EFM working mode on an interface using the edit-config method.

Table 1 Configuring an EFM working mode on an interface

Operation

XPATH

edit-config

  • /ietf-interfaces/interfaces/interface/name

  • /ietf-interfaces/interfaces/interface/huawei-efm:efm/mode

Data Requirements

Item

Data

Description

Interface name

GigabitEthernet0/0/1

Specify the interface where an EFM working mode needs to be configured.

EFM working mode

passive

Configure EFM on the interface to work in passive mode.

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>
      <if:interfaces xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces">
        <if:interface>
          <if:name>GigabitEthernet0/0/1</if:name>
          <huawei-efm:efm xmlns:huawei-efm="urn:huawei:params:xml:ns:yang:huawei-efm">
            <huawei-efm:mode>passive</huawei-efm:mode>
          </huawei-efm:efm>
        </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="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-app-tag>-1</error-app-tag>
    <error-message>Service process failed.</error-message>
    <error-info>Error on node /ietf-interfaces:interfaces/interface[name="GigabitEthernet0/0/1"]/huawei-efm:efm/mode</error-info>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >