<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Thomas,</p>
<p>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):<br>
</p>
<pre class="c-mrkdwn__pre" data-stringify-type="pre" style="box-sizing: inherit; margin: 4px 0px; padding: 8px; --saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13); overflow-wrap: break-word; font-size: 12px; font-variant-ligatures: none; line-height: 1.50001; tab-size: 4; white-space: pre-wrap; word-break: normal; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important; background: rgba(var(--sk_foreground_min,29,28,29),0.04); border: 1px solid var(--saf-0); border-radius: 4px; counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; font-style: normal; font-variant-caps: normal; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><font color="#c0c0c0">- name: 'Get GRIX IXP manager data'
action: uri url="<a target="_blank" class="c-link moz-txt-link-freetext" data-stringify-link="https://portal.gr-ix.gr/api/v4/member-export/ixf/1.0" data-sk="tooltip_parent" href="https://portal.gr-ix.gr/api/v4/member-export/ixf/1.0" rel="noopener noreferrer" tabindex="-1" data-remove-tab-index="true" style="box-sizing: inherit; text-decoration: none;">https://portal.gr-ix.gr/api/v4/member-export/ixf/1.0</a>" 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]</font></pre>
<p></p>
<div class="moz-cite-prefix">We are using a different url than the
one provided above, since we have developed our own custom API for
our needs.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Best Regards,</div>
<div class="moz-cite-prefix">Marinos<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 12/12/2022 1:13 π.μ., Thomas Fritz
via ixpmanager wrote:<br>
</div>
<blockquote type="cite"
cite="mid:102E0BFB-9A9D-4F7D-BDD7-D80870AB458E@rheintal-ix.net">
<pre class="moz-quote-pre" wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:ixpmanager@inex.ie">ixpmanager@inex.ie</a>
Unsubscribe or change options here: <a class="moz-txt-link-freetext" href="https://www.inex.ie/mailman/listinfo/ixpmanager">https://www.inex.ie/mailman/listinfo/ixpmanager</a>
</pre>
</blockquote>
<div class="moz-signature">-- <br>
<title></title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<table style="width:350px; font-size:10pt; font-family:Verdana,
Helvetica, sans-serif; color:#2a2a2a" width="350"
cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding-top:0; padding-left:0; padding-right:0;
padding-bottom:1px; vertical-align:top;" valign="top"> <img
style="width:95px; height:auto; border:0;"
src="cid:part1.lPmRItO9.Mrvl3Hm1@noc.grnet.gr"
width="132" border="0"> </td>
</tr>
<tr>
<td style="font-size:12pt; font-family:Verdana;
color:#7492c9; padding:0; line-height:20px;
vertical-align:top;" valign="top">Marinos Dimolianis</td>
</tr>
<tr>
<td style="padding-top:0; padding-left:0; padding-right:0;
padding-bottom:2px; line-height:20px; vertical-align:top;
font-size:10pt; font-family:Verdana; color:#222222;"
valign="top"> <span style="font-size:11pt;
font-family:Verdana; color:#222222;">NetDevOps Engineer</span>
</td>
</tr>
<tr>
<td style="padding-top:0; padding-left:0; padding-right:0;
padding-bottom:1px; line-height:14px; vertical-align:top;
font-size:10pt; font-family:Verdana;" valign="top"> <span><span
style="color: #7492c9;"><strong>t :</strong></span><span
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana;
color:#222222;">2107471098 </span></span> </td>
</tr>
<tr>
<td style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana;
PADDING-TOP: 1px; PADDING-BOTTOM: 1px; PADDING-LEFT: 0;
vertical-align: top; line-height:14px;" valign="top"> <span
style="FONT-FAMILY: Verdana; FONT-SIZE:10pt;
color:#222222"> GRNET </span> <span
style="FONT-FAMILY: Verdana; FONT-SIZE:10pt;
color:#7492c9"> | </span> <span style="FONT-FAMILY:
Verdana; FONT-SIZE:10pt; color:#222222">Networking
Research, Education and Government</span> </td>
</tr>
<tr>
<td style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana;
PADDING-BOTTOM: 5px; PADDING-TOP: 1px; PADDING-LEFT: 0;
vertical-align: top; line-height:14px;" valign="top"> <span><span
style="color: #7492c9;"><a href="http://www.grnet.gr"
target="_blank" style="color:#7492c9;
font-size:10pt; font-family:Verdana;">www.grnet.gr</a></span>
<span style="color: #7492c9;"> | </span>
<span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana;
color:#222222"> 7, Kifisias Av., 115 23, Athens<br>
</span></span></td>
</tr>
<tr>
<td style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana;
PADDING-BOTTOM: 1px; PADDING-TOP: 2px; PADDING-LEFT: 0;
vertical-align: top; " valign="top"> <span><a
href="https://www.facebook.com/grnet.gr/"
target="_blank"><img alt="Facebook icon"
style="border:0; height:23px; width:23px"
src="cid:part2.1Op0NzOT.ugcKq3A9@noc.grnet.gr"
width="23" border="0"></a></span> <span><a
href="https://twitter.com/grnet_gr" target="_blank"><img
alt="Twitter icon" style="border:0; height:23px;
width:23px"
src="cid:part3.PGbpGk1d.xrripMh1@noc.grnet.gr"
width="23" border="0"></a></span> <span><a
href="https://www.youtube.com/user/EDETvideos"
target="_blank"><img alt="Youtube icon"
style="border:0; height:23px; width:23px"
src="cid:part4.09trNjZq.4e0ITV4U@noc.grnet.gr"
width="23" border="0"></a></span> <span><a
href="https://www.linkedin.com/company/55267/"
target="_blank"><img alt="LinkedIn icon"
style="border:0; height:23px; width:23px"
src="cid:part5.ZxMEIxr0.RpMTddwU@noc.grnet.gr"
width="23" border="0"></a></span> <span><a
href="https://www.instagram.com/grnet.gr/"
target="_blank"><img alt="Instagram icon"
style="border:0; height:23px; width:23px"
src="cid:part6.e5J0cvjN.mYo0zLS0@noc.grnet.gr"
width="23" border="0"></a></span> </td>
</tr>
</tbody>
</table>
</div>
</body>
</html>