<div dir="ltr">Jasper thx a lot for the help!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 7, 2023 at 3:16 AM Jasper Yu <<a href="mailto:007seadog@gmail.com">007seadog@gmail.com</a>> wrote:<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,<div><br></div><div>You should use the PHP as Template Engine, and wrap the whole section in that like</div><div><?php if($int['autsys'] != 65000): ?><br># Peer ASN == route's first ASN?<br>if (bgp_path.first != <?= $int['autsys'] ?> ) then {<br>    bgp_large_community.add( IXP_LC_FILTERED_FIRST_AS_NOT_PEER_AS );<br>    accept;<br>}<br><?php endif; ?><br><br></div><div> Thanks</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width: 0px; max-height: 0px; overflow: hidden;" src="https://mailfoogae.appspot.com/t?sender=aMDA3c2VhZG9nQGdtYWlsLmNvbQ%3D%3D&type=zerocontent&guid=bb6c7d9d-d724-4fd2-a038-1644db7c417c"><font color="#ffffff" size="1">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 7, 2023 at 5:54 AM Alexander Kronenberg <<a href="mailto:kronenberg@serverion.com" target="_blank">kronenberg@serverion.com</a>> wrote:<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"><div>Hi Jasper,</div><div>Should it look like that:</div><div><br></div><div><span style="font-family:monospace">    # Peer ASN == route's first ASN?</span><br></div><div><font face="monospace">    if (bgp_path.first != <?= $int['autsys'] ?> ) then {<br>        bgp_large_community.add( IXP_LC_FILTERED_FIRST_AS_NOT_PEER_AS );<br>        accept;<br>    }</font><br></div><div><br></div><div><font face="monospace">    # Skipping first ASN check for 65000<br>    if (<?= $int['autsys'] ?> == 65000) then {</font><br style="font-family:monospace"><span style="font-family:monospace">        bgp_large_community.delete( IXP_LC_FILTERED_FIRST_AS_NOT_PEER_AS );</span><font face="monospace"><br>        accept;<br>    }  </font><br></div><div><br></div><div>Where 65000 is an example of ASN.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 6, 2023 at 9:36 PM Jasper Yu <<a href="mailto:007seadog@gmail.com" target="_blank">007seadog@gmail.com</a>> wrote:<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,<div><br></div><div>You should be able to bypass the Peer ASN Check in the neighbors.foil.php teamplate when importing routes from specific neighbors.</div><div><br></div><div>Thanks</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width: 0px; max-height: 0px; overflow: hidden;" src="https://mailfoogae.appspot.com/t?sender=aMDA3c2VhZG9nQGdtYWlsLmNvbQ%3D%3D&type=zerocontent&guid=d5571de5-731c-421a-8ae7-5ff8fe627eeb"><font color="#ffffff" size="1">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 7, 2023 at 12:48 AM Alexander Kronenberg via ixpmanager <<a href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a>> wrote:<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">Greetings,<div>Is there a way to lift such sanity check for a specific peer?</div><div>I thought that a skinned file could help remove a large community which does not allow to propagate such prefixes to other members. But looks like it won't help because the skinned file is being processed before the beginning of the standard filters.</div><div>Is there any other way but to put full import policy configuration for specific peer in the skinned file?</div><div><br></div><div>Thanks in advance!<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><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Jasper Yu</div><div dir="ltr"><span style="font-size:small">About me: <a href="https://seadog007.me" target="_blank">https://seadog007.me</a><br></span>CV: <a href="https://seadog007.work" target="_blank">https://seadog007.work</a><br style="font-size:small"><span style="font-size:small">Email: <a href="mailto:007seadog@gmail.com" target="_blank">007seadog@gmail.com</a>, <a href="mailto:admin@seadog007.me" target="_blank">admin@seadog007.me</a></span><br style="font-size:small"><span style="font-size:small">Phone: +886920498225</span><br></div></div></div></div></div></div>
</blockquote></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Jasper Yu</div><div dir="ltr"><span style="font-size:small">About me: <a href="https://seadog007.me" target="_blank">https://seadog007.me</a><br></span>CV: <a href="https://seadog007.work" target="_blank">https://seadog007.work</a><br style="font-size:small"><span style="font-size:small">Email: <a href="mailto:007seadog@gmail.com" target="_blank">007seadog@gmail.com</a>, <a href="mailto:admin@seadog007.me" target="_blank">admin@seadog007.me</a></span><br style="font-size:small"><span style="font-size:small">Phone: +886920498225</span><br></div></div></div></div></div></div>
</blockquote></div>