clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
208 stars 70 forks source link

CLICON_CONFIGDIR with external subsystems causes endless looping #439

Closed pprindeville closed 1 year ago

pprindeville commented 1 year ago

In the XML parsing in parse_configfile_one() we have the following loop.

The problem with the loop is that you can't "ignore" the nodes by just doing a continue. They need to be deleted from xe so that the next call to examine the head of the vector:

while ((xec = xml_child_i_type(xe, 0, CX_ELMNT)) != NULL) {

doesn't find them still there. We need to do a xml_child_rm() to remove them from xe before continuing the loop.

pprindeville commented 1 year ago

Fixed in PR #440.

pprindeville commented 1 year ago

Fixed w/ the merge of PR #440.