Skip to content
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

Add huge_tree support for RPC calls #685

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mweinelt
Copy link

@mweinelt mweinelt commented Feb 4, 2025

When retrieving large XML responses over Netconf we need to use lxml with huge_trees, because the default XML parser bails out.

Fixes: #255

SUMMARY
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

netconf RPC

ADDITIONAL INFORMATION

Long XML responses without huge_tree run into the an exception:

lxml.etree.XMLSyntaxError: xmlSAX2Characters: huge text node

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

netconf connections do not support huge_tree
1 participant