Let’s say I want to verify/audit if an “item” (for example, a specific configuration or a dynamically learned route or a LLDP neighbor) is present on a device using NETCONF.
A solution I see is to build a script that connects to the device and use <get-config> or <get> methods and parse the XML reply to do the verification/audit. That means that for every new item I want to verify I would have to look up the related yang models, do the XML parsing, and modify my scripts.
Is there a higher-level solution/python module that allow me to do this? Maybe there is a simpler way to parse the reply.
Note: I am more interested in solutions that involves code.