-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection type 'network_cli' is not valid for 'junos_facts' module. #68034
Comments
Files identified in the description: If these files are inaccurate, please update the |
@marzdgzmn, just so you are aware we have a dedicated Working Group for network. |
This is expected. junos_facts module work with connection=netconf only for more details refer https://docs.ansible.com/ansible/latest/network/user_guide/platform_junos.html |
Ah, so https://docs.ansible.com/ansible/latest/modules/junos_facts_module.html should be updated then. |
What is the issue in module documentation. I can't see anywhere it is mentioned that module works with network_cli connection |
*Deprecated*
Starting with Ansible 2.5 we recommend using connection: network_cli
or connection:
netconf.
For more information please see the Junos OS Platform Options guide
<https://docs.ansible.com/ansible/latest/network/user_guide/platform_junos.html>
.
My bad, it says deprecated. Thanks though.
…On Thu, Mar 5, 2020 at 5:01 PM Ganesh Nalawade ***@***.***> wrote:
What is the issue in module documentation. I can't see anywhere it is
mentioned that module works with network_cli connection
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#68034?email_source=notifications&email_token=AGNVTNCNNLOFBWTCMNRSG6TRF5TANA5CNFSM4LCEV7O2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN4KMBI#issuecomment-595109381>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGNVTNDICSAW3OU4MQTMWK3RF5TANANCNFSM4LCEV7OQ>
.
|
#67957 ### SUMMARY
Running junos_facts module via the network_cli connection/provider is giving me an error:
"Connection type 'network_cli' is not valid for 'junos_facts' module"
ISSUE TYPE
COMPONENT NAME
Module: junos_facts
ANSIBLE VERSION
OS / ENVIRONMENT
5.4.23-1-MANJARO
STEPS TO REPRODUCE
ansible all -i IP_Address, -c network_cli -u user -k -m junos_facts -e ansible_network_os=junos
It should be retrieving the facts from the Junos Device.
ACTUAL RESULTS
setting up inventory plugins
Parsed 10.129.3.31, inventory source with host_list plugin
Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python3.8/site-packages/ansible/plugins/callback/minimal.py
META: ran handlers
<10.129.3.31> attempting to start connection
<10.129.3.31> using connection plugin network_cli
<10.129.3.31> local domain socket does not exist, starting it
<10.129.3.31> control socket path is /home/marz/.ansible/pc/1e1a7b9fd7
<10.129.3.31> local domain socket listeners started successfully
<10.129.3.31> loaded cliconf plugin junos from path /usr/lib/python3.8/site-packages/ansible/plugins/cliconf/junos.py for network_os junos
<10.129.3.31>
<10.129.3.31> local domain socket path is /home/marz/.ansible/pc/1e1a7b9fd7
10.129.3.31 | FAILED! => {
"changed": false,
"msg": "Connection type 'network_cli' is not valid for 'junos_facts' module. Please see https://docs.ansible.com/ansible/latest/network/user_guide/platform_junos.html"
}
The text was updated successfully, but these errors were encountered: