<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">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>