Category
Collection Namespace & Version
/home/aknop/.ansible/collections/ansible_collections
juniper.device 2.0.1
junipernetworks.junos 11.1.1
Module / Plugin Details
juniper.device.junos_logging_global
Description
Configured "explicit_priority: true" under a host in junos_logging_global, but the explicit_priority is not being considered at all. It is being considered for files, however.
Inventory File (sanitized)
---
ansible_user: aknop
ansible_password: "{{ ansible_vault_password }}"
ansible_network_os: junipernetworks.junos.junos
ansible_connection: ansible.netcommon.netconf
hosts:
cc-ss1-dub3-j480-re0:
ansible_host: <Redacted>
Playbook Details
I have the following configured:
tasks:
- name: Ensure syslog server config is in place
juniper.device.junos_logging_global:
config:
hosts:
- name: other-routing-engine
any:
level: error
explicit_priority: true
log_prefix: "{{ inventory_hostname | regex_replace('-re[01]$', '-backup-RE') }}"
state: rendered
ansible-playbook playbooks/ansible-juniper-delete-add/syslog_config_delete_add/syslog_config_delete_add_cc.yml -CD --limit cc-ss1-dub3-j480-re0 -i inventory.yml --ask-vault-password -vvvv
Steps to Reproduce
- Install the collection:
ansible-galaxy collection install juniper.device==<version>
- Set up the inventory file as shown above.
- Run the playbook:
ansible-playbook -i <inventory> <playbook>.yml
-
- Observe the error / unexpected behaviour.
Expected Behavior
Explicit_priority needs to be considered so it can configure or remove as necessary
Actual Behavior
Explicit_priority, whether true or false, does not matter.
Error summary:
Environment
Ansible & Python
| Item |
Version |
| ansible-core |
2.20.6 |
| Python |
3.12.3 |
| OS |
Ubuntu 24.04.4 LTS |
Collection & Python Package Versions
ansible-galaxy collection list | grep -E 'juniper|junipernetworks'
pip show junos-eznc ncclient paramiko lxml
# ansible-galaxy collection list output:
# pip show output:
Name: junos-eznc
Version: 2.8.1
Summary: Junos 'EZ' automation for non-programmers
Home-page: http://www.github.com/Juniper/py-junos-eznc
Author: Jeremy Schulman, Nitin Kumar, Rick Sherman, Stacy Smith
Author-email: jnpr-community-netdev@juniper.net
License: Apache 2.0
Location: /home/aknop/GitRepos/obs-net-ansible-juniper-automation/.venv/lib/python3.12/site-packages
Requires: jinja2, lxml, ncclient, paramiko, pyparsing, pyserial, PyYAML, scp, six, transitions, yamlloader
Required-by:
---
Name: ncclient
Version: 0.7.0
Summary: Python library for NETCONF clients
Home-page: https://github.com/ncclient/ncclient
Author: Shikhar Bhushan, Leonidas Poulopoulos, Ebben Aries, Einar Nilsen-Nygaard
Author-email: shikhar@schmizz.net, lpoulopoulos@verisign.com, exa@dscp.org, einarnn@gmail.com
License: Apache 2.0
Location: /home/aknop/GitRepos/obs-net-ansible-juniper-automation/.venv/lib/python3.12/site-packages
Requires: lxml, paramiko
Required-by: junos-eznc
---
Name: paramiko
Version: 5.0.0
Summary: SSH2 protocol library
Home-page:
Author:
Author-email: Jeff Forcier <jeff@bitprophet.org>
License:
Location: /home/aknop/GitRepos/obs-net-ansible-juniper-automation/.venv/lib/python3.12/site-packages
Requires: bcrypt, cryptography, invoke, pynacl
Required-by: junos-eznc, ncclient, scp
---
Name: lxml
Version: 6.1.1
Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Home-page: https://lxml.de/
Author: lxml dev team
Author-email: lxml@lxml.de
License: BSD-3-Clause
Location: /home/aknop/GitRepos/obs-net-ansible-juniper-automation/.venv/lib/python3.12/site-packages
Requires:
Required-by: junos-eznc, ncclient
Junos Device
| Item |
Value |
| Junos version |
21.2R3-S8.5 |
| Junos platform / model |
mx480 |
| Transport |
NETCONF over SSH |
| NETCONF port |
22 |
Junos RPC / XML (if applicable)
<!-- RPC request -->
<nc:host><nc:name>other-routing-engine</nc:name><nc:contents><nc:name>any</nc:name><nc:error/></nc:contents><nc:log-prefix>cc-ss1-dub3-j480-backup-RE</nc:log-prefix></nc:host>
<!-- RPC response / error -->
Additional Context
Support
As Red Hat Ansible Certified Content, this collection is entitled to support through the Ansible Automation Platform (AAP) using the Create issue button on the top right corner of the AAP support portal.
If a support case cannot be opened with Red Hat and the collection has been obtained either from Galaxy or GitHub, there may be community help available on the Ansible Forum.
Category
Collection Namespace & Version
/home/aknop/.ansible/collections/ansible_collections
juniper.device 2.0.1
junipernetworks.junos 11.1.1
Module / Plugin Details
juniper.device.junos_logging_global
Description
Configured "explicit_priority: true" under a host in junos_logging_global, but the explicit_priority is not being considered at all. It is being considered for files, however.
Inventory File (sanitized)
Playbook Details
I have the following configured:
Steps to Reproduce
ansible-galaxy collection install juniper.device==<version>ansible-playbook -i <inventory> <playbook>.ymlExpected Behavior
Explicit_priority needs to be considered so it can configure or remove as necessary
Actual Behavior
Explicit_priority, whether true or false, does not matter.
Error summary:
Environment
Ansible & Python
Collection & Python Package Versions
Junos Device
Junos RPC / XML (if applicable)
Additional Context
Support
As Red Hat Ansible Certified Content, this collection is entitled to support through the Ansible Automation Platform (AAP) using the Create issue button on the top right corner of the AAP support portal.
If a support case cannot be opened with Red Hat and the collection has been obtained either from Galaxy or GitHub, there may be community help available on the Ansible Forum.