Ansible network_cli plugin development for custom network device

22 views
Skip to first unread message

nitesh shet

unread,
Jul 28, 2021, 4:01:08 AM7/28/21
to Ansible Development
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



Nilashish Chakraborty

unread,
Jul 29, 2021, 11:23:51 AM7/29/21
to nitesh shet, Ansible Development
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 to point to your custom cliconf plugin file and see if that works?

Thanks,
Nilashish Chakraborty
Senior Software Engineer - Ansible


--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/57231c03-8ac1-447d-8635-b4714546c2a7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages