To enable CDP protocol with Huawei switches we need to perform this configuration on Huawei switch:
[Huawei] lldp enable //to enable lldp on the switch with all interfaces
[Huawei] interface gigaethernet 0/0/1 //Enter the interface that you want to make it compatible with CDP protocol
[HUAWEI-GigabitEthernet0/0/1] lldp compliance cdp receive //This command will allow the information to exchange between LLDP and CDP
After performing this configuration all CDP commands (EX. display cdp neighbor) can work on Huawei switches, also this can be performed on all interfaces of the switch