This section provides a sample of configuring EFM association using the edit-config method.
Operation |
XPATH |
|---|---|
edit-config |
|
Item |
Data |
Description |
|---|---|---|
Name of the EFM-enabled interface |
GigabitEthernet0/0/1 |
Specify the interface where EFM needs to be enabled. |
Direction where faults are reported between EFM and an interface |
efm-to-port |
Configure EFM to report faults to an interface. |
Name of the interface bound to EFM |
GigabitEthernet0/0/2 |
Specify the interface to be bound to EFM. |
<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="40" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<huawei-efm:efm xmlns:huawei-efm="urn:huawei:params:xml:ns:yang:huawei-efm">
<huawei-efm:enabled>true</huawei-efm:enabled>
</huawei-efm:efm>
<huawei-efm:oam-mgr xmlns:huawei-efm="urn:huawei:params:xml:ns:yang:huawei-efm">
<huawei-efm:oam-bind-efm>
<huawei-efm:ingress-port>GigabitEthernet0/0/1</huawei-efm:ingress-port>
<huawei-efm:direction>efm-to-port</huawei-efm:direction>
<huawei-efm:egress-port>GigabitEthernet0/0/2</huawei-efm:egress-port>
</huawei-efm:oam-bind-efm>
</huawei-efm:oam-mgr>
</config>
</edit-config>
</rpc>
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="40"> <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="40">
<rpc-error>
<error-app-tag>-1</error-app-tag>
<error-message>Service process failed.</error-message>
<error-info>Error on node /huawei-efm:efm/oam-mgr/oam-bind-efm[ingress-port="GigabitEthernet0/0/1",direction="efm_to_port"]</error-info>
</rpc-error>
</rpc-reply>