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

Audit/Verify via using Netconf.

pauloroque
Level 1
Level 1

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