<div dir="ltr">and how these kind of checks are handled?<div><span style="color:rgb(22,22,22);font-family:"PT Sans",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px">if (myas,peeras) ~ bgp_community</span> <font color="#0000ff">what is bgp_community?</font><br></div><div><font color="#0000ff"><br></font></div><div><font color="#000000"><span style="background-color:rgb(243,243,243)">Thanks, </span></font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 6 apr 2020 alle ore 15:32 Fabiano D'Agostino <<a href="mailto:fabiano.dagostino96@gmail.com">fabiano.dagostino96@gmail.com</a>> ha scritto:<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">Thank you, but "if the route does not come from BGP then false"<div>here I have:</div><div>protocol pipe a {<br> table master;<br> mode transparent;<br> peer table a;<br> import all; <br> export where bgp_out(x); => <font color="#0000ff">this becomes false, what does this mean?</font><br> #export all;<br>}<br></div><div><br></div><div>Thanks,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 6 apr 2020 alle ore 10:50 Bernd Naumann <<a href="mailto:bena@spreadshirt.net" target="_blank">bena@spreadshirt.net</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 05.04.20 23:08, Fabiano D'Agostino wrote:<br>
> Good evening,<br>
> could someone explain me the meaning of these lines?<br>
> <br>
> function bgp_out(int peeras)<br>
> {<br>
> if ! (source = RTS_BGP ) then return false;<br>
> if peeras > 65535 then return true; ### communities do not support AS32<br>
> if (0,peeras) ~ bgp_community then return false;<br>
> if (myas,peeras) ~ bgp_community then return true;<br>
> if (0, myas) ~ bgp_community then return false;<br>
> return true;<br>
> }<br>
> <br>
> Thanks,<br>
> <br>
> Fabiano<br>
> <br>
<br>
Morning,<br>
<br>
I can not cover the whole section but as a start...<br>
<br>
* if the route does not come from BGP then false (routing table source?)<br>
* if the remote AS Number is greater 65535 (16 Bit) then "just" return <br>
true (see AS 32 Bit Numbers, and the non-support of older <br>
devices/implementations)<br>
* For the next 3 I'm not 100% sure how to read but I found <br>
<a href="https://bird-users.network.narkive.com/3uDbo6H9/any-ix-willing-to-share-their-config" rel="noreferrer" target="_blank">https://bird-users.network.narkive.com/3uDbo6H9/any-ix-willing-to-share-their-config</a><br>
<br>
```<br>
0:XXXXX - Do not announce route to peer XXXXX<br>
0:MyASN - Do not announce route to all peers<br>
MyASN:XXXXX - Announce route to peer XXXXX only<br>
MyASN:MyASN - Announce routes to all peers. This community is<br>
automatically added to all routes that are not<br>
tagged with any of MyASN:XXXXX communities.<br>
```<br>
<br>
Maybe this helps a little bit.<br>
<br>
Bernd<br>
</blockquote></div>
</blockquote></div>