Audit/Verify via using Netconf.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2020 12:26 PM
All,
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.
Paulo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 02:03 AM
Hi
Please have a look at Genie and pyATS for high-level libraries. Genie can do the magic for you ;)
https://developer.cisco.com/docs/pyats/#!introduction/cisco-pyats-network-test-automation-solution
Sorry, I don't understand your comment -
Note: I am more interested in solutions that involves code.
are you saying .. give me code?
Regards
