Setting a Port Loopback
please check the below link:
https://support.huawei.com/enterprise/en/doc/EDOC1000178037/2ad411/setting-a-port-loopback
This section describes how to set a port loopback on a tributary or line board. A tributary board receiving/transmitting non-OTN services supports inloop and outloop over its optical ports. A line- or tributary-board port receiving/transmitting OTN services supports optical-port inloop/outloop and channel inloop/outloop.
Prerequisites
You are an NM user with Operator Group rights or higher.
Procedure
In the NE Explorer, select the target board and choose Configuration > WDM Interface from the Function Tree.
On the Basic Attributes tab page, click Query to check the optical port or channel loopback status.
Set other parameters as planned.
NOTE:
A warm board reset will automatically cancel the loopback setting.
A looped-back optical port or channel will report the LOOP_AIM alarm.