"msg": "error connecting to the device: Unexpected session close" -While connecting to cisco ios-xr router with netconf

Hi ,

I tried using netconf/XML rpc with ansible for netconf_config to cisco ios_xr router and we got the below error

“msg”: “error connecting to the device: Unexpected session close”

Ansible version we are using is 2.4

kinly let us know if any inputs.

Thanks
Jay

* What does your playbook look like?
* What is the output with extra verbosity?