cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
594
Views
0
Helpful
1
Replies

Audit/Verify via using Netconf.

pauloroque
Beginner
Beginner

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

1 Reply 1

omz
VIP Alumni
VIP Alumni

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

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: