Send Netdot-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-users digest..."


Today's Topics:

   1. pynetdot - Python module for netdot (Matej Vadnjal)
   2. Re: pynetdot - Python module for netdot (Carlos Vicente)


----------------------------------------------------------------------

Message: 1
Date: Wed, 28 Sep 2016 10:41:18 +0200
From: Matej Vadnjal <[email protected]>
Subject: [Netdot-users] pynetdot - Python module for netdot
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi everybody

We are using netdot extensively and it has become an invaluable tool at 
Arnes.

We also use a lot of the data stored in netdot in various other 
applications and scripts. To ease interfacing with netdot I have written 
pynetdot - a Python module that interacts with netdot's generic REST 
resources.

It converts XML responses into Python objects and is aware of 
relationships between various netdot resources. This means you can do 
cool stuff like this in your python script:

 >>> device = pynetdot.Device.get_first(name='myrouter')
 >>> for interface in device.interfaces:
....    print interface.name, interface.ips
Gi1/0/3 [pynetdot.models.Ipblock("10.2.2.2/32")]
Gi1/0/4 []

Some more examples on the projects GitHub page.

Python classes for each type are generated by parsing netdot REST 
meta_data resources (eg: netdot/rest/device/meta_data). So the module 
should be easily upgradable to feature netdot versions.

You can find pynetdot at https://github.com/ArnesSI/pynetdot or install 
it via pip (pip install pynetdot).

Let me know if you like it, have any suggestions, find bugs...


Kind regards
Matej Vadnjal


------------------------------

Message: 2
Date: Wed, 28 Sep 2016 08:17:47 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] pynetdot - Python module for netdot
To: Matej Vadnjal <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID:
        <CADN=49cwizlmmg7kvkgkqjls3pve06pr6nppbau1vurt_tk...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Matej,

That looks like a very well written interface. Thank you very much for
sharing your code!

cv

On Wed, Sep 28, 2016 at 4:41 AM, Matej Vadnjal <[email protected]>
wrote:

> Hi everybody
>
> We are using netdot extensively and it has become an invaluable tool at
> Arnes.
>
> We also use a lot of the data stored in netdot in various other
> applications and scripts. To ease interfacing with netdot I have written
> pynetdot - a Python module that interacts with netdot's generic REST
> resources.
>
> It converts XML responses into Python objects and is aware of
> relationships between various netdot resources. This means you can do
> cool stuff like this in your python script:
>
>  >>> device = pynetdot.Device.get_first(name='myrouter')
>  >>> for interface in device.interfaces:
> ....    print interface.name, interface.ips
> Gi1/0/3 [pynetdot.models.Ipblock("10.2.2.2/32")]
> Gi1/0/4 []
>
> Some more examples on the projects GitHub page.
>
> Python classes for each type are generated by parsing netdot REST
> meta_data resources (eg: netdot/rest/device/meta_data). So the module
> should be easily upgradable to feature netdot versions.
>
> You can find pynetdot at https://github.com/ArnesSI/pynetdot or install
> it via pip (pip install pynetdot).
>
> Let me know if you like it, have any suggestions, find bugs...
>
>
> Kind regards
> Matej Vadnjal
> _______________________________________________
> Netdot-users mailing list
> [email protected]
> https://osl.uoregon.edu/mailman/listinfo/netdot-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20160928/47269b0a/attachment-0001.html
 

------------------------------

_______________________________________________
Netdot-users mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-users


End of Netdot-users Digest, Vol 90, Issue 5
*******************************************

Reply via email to