Ansible and Huawei

Hello there

Was wondering if anyone has experience of using ansible with Huawei successfully?
We are using Huawei at our IX and I am able to use ad-hoc commands with Huawei but playbooks based on documentation fail with a ncclient related error. We do have nc client as well as netconf installed on the machine.

Our sample playbook (IP and access details are removed)

The error you are seeing is coming from ncclient library.
Are you able to connect to the device using a sample python script that uses ncclinet library?

Reference python script: https://github.com/ncclient/ncclient/blob/master/examples/nc01.py

Regards,
Ganesh

Hi

Yes, tried that and it failed as well. Turned out netconf was not
enabled at the device and for some reason I am not able to enable it
either. Checking for device compatibility with netconf for now.

Anyways, thanks for your help and input Ganesh.