[ixpmanager] IXPManager API accessed by Ansible inventory plugin/script

Marinos Dimolianis mdimolianis at noc.grnet.gr
Mon Dec 12 09:49:19 GMT 2022


Hello Thomas,

We are using the following Ansible code to retrieve data from the IXP 
Manager and use them in our automated configuration management (in a 
nutshell, we are translating the generated json to yml and use the 
corresponding variables in jinja template files that compose our device 
configuration):

- name: 'Get GRIX IXP manager data' action: uri 
url="https://portal.gr-ix.gr/api/v4/member-export/ixf/1.0 
<https://portal.gr-ix.gr/api/v4/member-export/ixf/1.0>" 
return_content=yes body_format=json # PORTAL (PRODUCTION) register: 
ixpmanager tags: [grix, ixpmanager] - name: 'Create GRIX YAML file' 
template: mode=0660 src=ixpmanager.j2 dest={{ ansible_path 
}}/group_vars/grix/auto_ixp.yml tags: [grix, ixpmanager]

We are using a different url than the one provided above, since we have 
developed our own custom API for our needs.

Best Regards,
Marinos

On 12/12/2022 1:13 π.μ., Thomas Fritz via ixpmanager wrote:
> Hi!
>
> Anyone here already using Ansible inventory plugin/script to grab the switches interface data from the IXPManager API…
> … and willing to share that code?
>
> Thanks,
> Thomas
>
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> Unsubscribe or change options here:https://www.inex.ie/mailman/listinfo/ixpmanager
-- 
Marinos Dimolianis
NetDevOps Engineer
*t :*2107471098
GRNET | Networking Research, Education and Government
www.grnet.gr <http://www.grnet.gr> | 7, Kifisias Av., 115 23, Athens
Facebook icon <https://www.facebook.com/grnet.gr/> Twitter icon 
<https://twitter.com/grnet_gr> Youtube icon 
<https://www.youtube.com/user/EDETvideos> LinkedIn icon 
<https://www.linkedin.com/company/55267/> Instagram icon 
<https://www.instagram.com/grnet.gr/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20221212/3920349f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: j1xQu8s5h3ggVLHJ.jpg
Type: image/jpeg
Size: 4948 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20221212/3920349f/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: YA5BFPTmERZRSnhV.png
Type: image/png
Size: 645 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20221212/3920349f/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wwqVuhOb7qfouzlE.png
Type: image/png
Size: 661 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20221212/3920349f/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ypzA4NAVRVoLenjp.png
Type: image/png
Size: 738 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20221212/3920349f/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwB49qG8tTtrNnOv.png
Type: image/png
Size: 716 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20221212/3920349f/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xffLjnqOmAOzPy3B.png
Type: image/png
Size: 653 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20221212/3920349f/attachment-0004.png>


More information about the ixpmanager mailing list