Developing / Testing network_cli connection methods

We’re looking to develop and test a network_cli module for an internal platform at our company.

I have gotten the connection method working by creating the necessary files, as documented in https://github.com/ansible/community/blob/master/group-network/network_dev_network_cli.rst

However this is a bit harder to manage when we’re deploying ansible itself. I’m looking to find out if there’s a method for setting custom paths for these various plugins, specifically the following:

  • plugins/terminal/{{ ansible_network_os }}.py
  • plugins/cliconf/{{ ansible_network_os }}.py
  • modules/network/{{ ansible_network_os }}/{{ ansible_network_os }}_command.py

I tried utilizing the connection_plugin in ansible.cfg but I don’t believe relates to the files above (at least from my testing)

You can set the plugin path in the configuration fileRefer https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-cliconf-plugin-path

Regards,
Ganesh