<html theme="themeKey88rand710" iconset="monochrome"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body text="#000000">Hi Thomas,<br>
<br>
please see: <a class="moz-txt-link-freetext" href="https://github.com/inex/ixp-manager-provisioning">https://github.com/inex/ixp-manager-provisioning</a><br>
<br>
It's SaltStack rather than Ansible but it should give you an idea on how
to do it.<br>
<br>
API's available:<br>
<br>
- <a class="moz-txt-link-freetext" href="https://ixpmanager.example.org/api/v4/provisioner/">https://ixpmanager.example.org/api/v4/provisioner/</a><span class="pl-s1"><span
class="pl-s">layer2interfaces/switch-name/</span><span class="pl-s">{switchname}.yaml</span></span><br>
<span>
</span>- <a class="moz-txt-link-freetext" href="https://ixpmanager.example.org/api/v4/provisioner/">https://ixpmanager.example.org/api/v4/provisioner/</a><span
class="pl-s1"><span class="pl-s">layer3interfaces/switch-name/</span></span><span
class="pl-s1"><span class="pl-s">{switchname}.yaml</span></span><br>
- <a class="moz-txt-link-freetext" href="https://ixpmanager.example.org/api/v4/provisioner/">https://ixpmanager.example.org/api/v4/provisioner/</a><span class="pl-s1"><span
class="pl-s"><span class="pl-pds"></span>routing/switch-name/</span></span><span
class="pl-s1"><span class="pl-s"></span></span><span class="pl-s1"><span
class="pl-s">{switchname}.yaml</span></span><span><br>
</span>- <a class="moz-txt-link-freetext" href="https://ixpmanager.example.org/api/v4/provisioner/">https://ixpmanager.example.org/api/v4/provisioner/</a><span
class="pl-s1"><span class="pl-s">switch/switch-name/</span></span><span
class="pl-s1"><span class="pl-s">{switchname}.yaml</span></span><br>
<span>
</span>- <a class="moz-txt-link-freetext" href="https://ixpmanager.example.org/api/v4/provisioner/vlans">https://ixpmanager.example.org/api/v4/provisioner/vlans</a><span
class="pl-s1"><span class="pl-s">/switch-name/</span></span><span
class="pl-s1"><span class="pl-s">{switchname}.yaml<br>
<br>
You should be able to build out a complete IXP config with these.<br>
<br>
- Barry<br>
<br>
<br>
</span></span>
<span></span><span><br>
<span>
</span></span>
<span>
</span>
<blockquote type="cite"
cite="mid:102E0BFB-9A9D-4F7D-BDD7-D80870AB458E@rheintal-ix.net"
style="border: 0px none ! important;">
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvHr"
style="margin:30px 25px 10px 25px;"><div
style="width:100%;border-top:2px solid
rgba(146,154,163,0.7);padding-top:10px;"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a style="color:#485664
!important;padding-right:6px;font-weight:500;text-decoration:none
!important;" href="mailto:ixpmanager@inex.ie" moz-do-not-send="true">Thomas
Fritz via ixpmanager</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#909AA4"><span style="padding-left:6px">11
December 2022 at 23:13</span></font></div> </div></div>
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvBody"
__pbrmquotes="true"
style="color:#909AA4;margin-left:24px;margin-right:24px;"><div>Hi!<br><br>Anyone
here already using Ansible inventory plugin/script to grab the switches
interface data from the IXPManager API…<br>… and willing to share that
code?<br><br>Thanks,<br>Thomas<br><br>_______________________________________________<br>INEX
IXP Manager mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:ixpmanager@inex.ie">ixpmanager@inex.ie</a><br>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><br></div>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br><br>
Kind regards,
<br>
Barry O'Donovan
<br>
Consultant<br>
<br>
For and on behalf of INEX <br>
<br>
<a class="moz-txt-link-freetext" href="https://www.inex.ie/support/">https://www.inex.ie/support/</a>
<br>
+353 1 531 3339<br>
<br>
<br>
</div>
</body></html>