You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, the device under test has a configuration of 145758 lines (set), 158600 (stanza), or 588119 lines (XML). When applying a change using the junos_config module with "lines: list", the following error is presented:
xmlSAX2Characters: huge text node, line 145760, column 1 (, line 145760)
The error is only related to the size of the configuration. There is no problem with the configuration being applied.
Configure a device with a dummy configuration exceeding 146000 lines (exact size to create error is unknown). Run the following playbook
---
- name: Test Config changehosts: devicegather_facts: notasks:
- name: Test Config changejunos_config:
comment: Test Config changelines:
- set policy-options policy-statement TEST term TEST then accept
EXPECTED RESULTS
Change to be applied to device
ACTUAL RESULTS
<1.2.3.4> ANSIBLE_NETWORK_IMPORT_MODULES: found junos_config at /home/MERIT/denike/.ansible/collections/ansible_collections/junipernetworks/junos/plugins/modules/junos_config.py
<1.2.3.4> ANSIBLE_NETWORK_IMPORT_MODULES: running junos_config
<1.2.3.4> ANSIBLE_NETWORK_IMPORT_MODULES: complete
<1.2.3.4> ANSIBLE_NETWORK_IMPORT_MODULES: Result: {'failed': True, '_ansible_parsed': False, 'module_stdout': '', 'module_stderr': 'xmlSAX2Characters: huge text node, line 145760, column 1 (, line 145760)', 'msg': 'MODULE FAILURE\nSee stdout/stderr for the exact error'}
fatal: [chcg-eqx-ch1-c1]: FAILED! => {
"changed": false
}
MSG:
MODULE FAILURE
See stdout/stderr for the exact error
MODULE_STDERR:
xmlSAX2Characters: huge text node, line 145760, column 1 (, line 145760)
The text was updated successfully, but these errors were encountered:
SUMMARY
In this case, the device under test has a configuration of 145758 lines (set), 158600 (stanza), or 588119 lines (XML). When applying a change using the junos_config module with "lines: list", the following error is presented:
xmlSAX2Characters: huge text node, line 145760, column 1 (, line 145760)
The error is only related to the size of the configuration. There is no problem with the configuration being applied.
ISSUE TYPE
COMPONENT NAME
junos_config
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 22.04
STEPS TO REPRODUCE
Configure a device with a dummy configuration exceeding 146000 lines (exact size to create error is unknown). Run the following playbook
EXPECTED RESULTS
Change to be applied to device
ACTUAL RESULTS
<1.2.3.4> ANSIBLE_NETWORK_IMPORT_MODULES: found junos_config at /home/MERIT/denike/.ansible/collections/ansible_collections/junipernetworks/junos/plugins/modules/junos_config.py
<1.2.3.4> ANSIBLE_NETWORK_IMPORT_MODULES: running junos_config
<1.2.3.4> ANSIBLE_NETWORK_IMPORT_MODULES: complete
<1.2.3.4> ANSIBLE_NETWORK_IMPORT_MODULES: Result: {'failed': True, '_ansible_parsed': False, 'module_stdout': '', 'module_stderr': 'xmlSAX2Characters: huge text node, line 145760, column 1 (, line 145760)', 'msg': 'MODULE FAILURE\nSee stdout/stderr for the exact error'}
fatal: [chcg-eqx-ch1-c1]: FAILED! => {
"changed": false
}
MSG:
MODULE FAILURE
See stdout/stderr for the exact error
MODULE_STDERR:
xmlSAX2Characters: huge text node, line 145760, column 1 (, line 145760)
The text was updated successfully, but these errors were encountered: