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

Python: All configured attributes of a node

sspehar
Level 1
Level 1

Hi!

I'm using python to get all attributes of a node which are configured on a device.

For example, I have a routing instance on Juniper device which is a List, and I want to get all the attributes which are configured on that node (interface, policy, etc..). So something like show running-config would do in CLI.


Currently I'm iterating child objects and also retrieving values with getattr() function, but this gets complicated when a node contains more Lists, Containers etc. So If there's a simpler solution I'd be happy to hear about it


Simon

0 Replies 0