<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I got to the same problem here. I have a custom IRR base for another reason (LACNIC IRR does not have either <a href="http://nic.br">nic.br</a> or <a href="http://nic.mx">nic.mx</a> entries).</div><div>And for some reason ixpmanager does not apply the host field defined on IRRD Sources.</div><div>I solved this creating another bgpq3 exec with the following content, and pointing out this new exec in .env :<br></div><div>File .env</div><div>IXP_IRRDB_BGPQ3_PATH=/usr/bin/bgpq3custom<br></div><div><br></div><div>File /usr/bin/bgpq3custom<br></div><div><font face="monospace">#!/bin/bash<br></font></div><div><div><font face="monospace">if [[ $@ = *"-S UEPG"* ]]<br></font></div><div><font face="monospace">then</font></div><div><font face="monospace">    /usr/bin/bgpq3 -h <a href="http://irr.uepg.br">irr.uepg.br</a> $@</font></div><div><font face="monospace">else </font></div><div><font face="monospace">    /usr/bin/bgpq3 $@</font></div><div><font face="monospace">fi</font></div></div><div><br></div><div><br></div><div>You could do something like this to Lacnic IRR:</div><div><span style="font-family:monospace">#!/bin/bash</span><br></div><div><div><font face="monospace">if [[ $@ = *"-S LACNIC"* ]]<br></font></div><div><font face="monospace">then</font></div><div><font face="monospace">    /usr/bin/bgpq3 -h <a href="http://irr.lacnic.net">irr.lacnic.net</a> $@</font></div><div><font face="monospace">else </font></div><div><font face="monospace">    /usr/bin/bgpq3 $@</font></div><div><font face="monospace">fi</font></div></div><div><br></div><div><br></div><div>Att.</div><div><br></div><div>Luiz Gustavo</div><div>UEPG</div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua., 28 de out. de 2020 às 11:21, Ryan Woolley <<a href="mailto:rwoolley@communityix.org">rwoolley@communityix.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi folks,<div><br></div><div>We're currently trying to turn up a new member whose IRR record is with LACNIC.</div><div><br></div><div>LACNIC's IRR, unlike most others, is not mirrored into RADB.  (It is also at <a href="http://irr.lacnic.net" target="_blank">irr.lacnic.net</a> rather than <a href="http://whois.lacnic.net" target="_blank">whois.lacnic.net</a>.)</div><div><br></div><div>I have an IRRDB Source called "LACNIC" configured and pointing to <a href="http://irr.lacnic.net" target="_blank">irr.lacnic.net</a>.  The member's IRRDB is set to "LACNIC" and the AS-SET is set to "AS52376:AS-RCN".</div><div><br></div><div>Attempting "Update Prefixes" yields this error:</div><div>500 | Server Error :: Error executing BGPQ3 with: /usr/bin/bgpq3 -S 'LACNIC' -l pl -j -m 24 'AS52376:AS-RCN'<br></div><div><br></div><div>Running this from the command line confirms that bgpq3 is generating the error:rwoolley@ixpm:/srv/ixpmanager/app/Utils$ /usr/bin/bgpq3 -S 'LACNIC' -l pl -j -m 24 'AS52376:AS-RCN'<br>ERROR:Invalid source(s) 'LACNIC': F source(s) unavailable<br></div><div><br></div><div>After digging into the documentation, it appears that BGPQ3 uses RADB unless another host is specified with -h, and -S just causes the query to RADB to be limited to records imported from LACNIC (of which there are none).</div><div><br></div><div>Usage: bgpq3 [-h host] [-S sources] [-P|E|G <num>|f <num>] [-2346AbDJjXd] [-R len] <OBJECTS>...<br></div><div> [...]<br> -h host   : host running IRRD software (<a href="http://whois.radb.net" target="_blank">whois.radb.net</a> by default)<br> [...]<br> -S sources: use only specified sources (default: RADB,RIPE,APNIC)<br></div><div><br></div><div></div><div>In looking at the code at app/Utils/Bgpq3.php, it appears that a variable called $whois is used to set an alternate host for bgpq3:<br></div><div>        if( $this->whois )<br>            $cmd = '-h ' . escapeshellarg( $this->whois ) . ' ' . $cmd;<br></div><div><br></div><div>I am not familiar enough with the code to follow this back to the source, but I would expect that $whois would be set from the hostname configured under IRRDB Sources, thus causing the command line to include -h <a href="http://irr.lacnic.net" target="_blank">irr.lacnic.net</a>.  Unfortunately, that is not happening.</div><div><br></div><div>Is there another place that this needs to be set?</div><div><br></div><div>For now, I've worked around this by adding to Bgpq3.php:</div><div>        if ($sources = "LACNIC") {<br>                $this->whois = "<a href="http://irr.lacnic.net" target="_blank">irr.lacnic.net</a>";<br>        }<br><br></div><div>And that causes the import to work as expected.</div><div><br></div><div>This is v5.7.0 running on Ubuntu 20.04.1 LTS.</div><div><br></div><div>Thanks,</div><div>Ryan Woolley</div><div>Community IX (FL-IX and CIX-ATL)</div><div><br></div></div>
_______________________________________________<br>
INEX IXP Manager mailing list<br>
<a href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a><br>
Unsubscribe or change options here: <a href="https://www.inex.ie/mailman/listinfo/ixpmanager" rel="noreferrer" target="_blank">https://www.inex.ie/mailman/listinfo/ixpmanager</a><br>
</blockquote></div>