-
Notifications
You must be signed in to change notification settings - Fork 111
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
netconf connections do not support huge_tree #255
Comments
Hello there, we've bumped in the very same issue while using Here's the task:
and here's the traceback:
As can be deduced from the traceback, I've been working on a PoC fix for this issue and willing to open a PR soon. Spoiler: main...irregulator:netconf/support_XML_huge_tree As soon as XML |
Hejhej, |
When retrieving large XML responses over Netconf we need to use lxml with huge_trees, because the default XML parser bails out. Fixes: ansible-collections#255
SUMMARY
This issue is similar to ansible/ansible#69512, but the issue is not in junos_rpc or junos_command, and as such relevant to this repository since it relies on a change to the netconf connection.
The ncclient netconf connection needs to be opened with huge_tree=True, which was added to the library in 2019 (ncclient/ncclient#319) and requires ncclient>=0.6.5.
This is required to support fetching large xml trees from network devices. This issue happens e.g. when fetching support information from a JunOS router.
ISSUE TYPE
COMPONENT NAME
netconf
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
NixOS Unstable
Tested against Junos MX240
STEPS TO REPRODUCE
get-support-information
against a JunOS router (Mx240 in our case)EXPECTED RESULTS
To get the support information in the
rsi
variable.ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: