# Ansible network\_cli plugin development for custom network device

**URL:** <https://forum.ansible.com/t/ansible-network-cli-plugin-development-for-custom-network-device/35555>\
**Category:** Ansible Developer\
**Created:** [July 28, 2021, 8:01am UTC](https://forum.ansible.com/t/ansible-network-cli-plugin-development-for-custom-network-device/35555 "2021-07-28T08:01:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [July 28, 2021, 8:01am UTC](https://forum.ansible.com/t/ansible-network-cli-plugin-development-for-custom-network-device/35555/1 "2021-07-28T08:01:08Z")

</div>

Hi,  
I have written code for cliconf and terminal for new network device to support network\_cli but i am unable to load the cliconf when i am running the command for the device.  
the cliconf and terminal both are in respective path:-  
/home/nshet/.ansible/collections/ansible\_collections/myorg/myos/plugins/terminal

/home/nshet/.ansible/collections/ansible\_collections/myorg/myos/plugins/cliconf

when i increase verbosity below is the error that i am finding:-

local domain socket does not exist, starting it  
\<172.16.7.232\> control socket path is /home/nshet/.ansible/pc/fd6295b4b1  
\<172.16.7.232\> Loading collection ansible.netcommon from /home/nshet/.ansible/collections/ansible\_collections/ansible/netcommon  
\<172.16.7.232\> Loading collection myorg.myos from /home/nshet/.ansible/collections/ansible\_collections/myorg/myos  
\<172.16.7.232\> local domain socket listeners started successfully  
\<172.16.7.232\> unable to load cliconf for network\_os myorg.myos.myos  
\<172.16.7.232\>

Please help me on this.

Thanks,  
Nitesh

---

<div class="post-metadata">

**Author:** ![Nilashish\_Chakrabort](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Nilashish\_Chakrabort](https://forum.ansible.com/u/Nilashish_Chakrabort)\
**Post date:** [July 29, 2021, 3:23pm UTC](https://forum.ansible.com/t/ansible-network-cli-plugin-development-for-custom-network-device/35555/2 "2021-07-29T15:23:35Z")

</div>

Hi Nitesh,

It is difficult to tell what might be causing the problem without looking at the plugins you wrote. Have you tried explicitly setting the environment variable [`ANSIBLE_CLICONF_PLUGINS`](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#envvar-ANSIBLE_CLICONF_PLUGINS) to point to your custom cliconf plugin file and see if that works?

Thanks,  
Nilashish Chakraborty  
Senior Software Engineer - Ansible
