clicon / clixon

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

Fix for showing state below mountpoints #521

Closed colinhusu closed 4 months ago

colinhusu commented 4 months ago

Generating state for a yang module that has both state and config below a mountpoint fails with an error:

XML node %s/%s has no corresponding yang specification (Invalid XML or wrong Yang spec

This is because netconf_trymerge() will be called to merge state and config, which will in turn trigger a problem in xml_merge1(). Fix that.