<div dir="ltr">I get it now. There *is* a local route that would match that if-statement in the context of the export. I misunderstood this routing table entry as ip-route presented it (that won't happen again). <div><br></div><div>$ ip route</div><div>...</div><div>blackhole <a href="http://10.6.130.64/26">10.6.130.64/26</a> proto bird<br></div><div><br></div><div>If I read the routes using the old 'route' command, the existence of this route in the local table is clearer to me.<div><br></div><div>$ route </div><div>...</div><div>10.6.130.64 0.0.0.0 255.255.255.192 U 0 0 0 *<div><div class="gmail-line gmail-number4 gmail-index3 gmail-alt1" style="margin:0px;padding:0px 1em;border-radius:0px;background:0px 50% rgb(255,255,255);border:0px;float:none;height:auto;line-height:20px;outline:0px;overflow:visible;text-align:left;vertical-align:baseline;width:auto;box-sizing:content-box;font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(51,51,51);text-decoration-style:initial;text-decoration-color:initial"><br></div><br class="gmail-Apple-interchange-newline"><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 2, 2018 at 10:50 AM Mark Petrovic <<a href="mailto:mspetrovic@gmail.com">mspetrovic@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hi. I am new to bird, and am studying an existing bird 1.6 configuration to understand how the system it supports works. Nothing is broken on my system; I just want to understand how it works.</span><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">In the main bird.cfg within a bgp template, I see this </div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">export filter calico_pools;<br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">that calico_pools filter calls this via a bird function</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"> if ( net =<span> </span><a href="http://10.6.130.64/26" style="color:rgb(17,85,204)" target="_blank">10.6.130.64/26</a><span> </span>) then { accept; }<br clear="all"><div><br></div><div>Now, I correctly see this route as advertised when viewed from a BGP peer. What I don't understand are the semantics of this if-statement. In an export statement, the docs say the relationship is from routing table to protocol</div><div><br></div><div>export: "This is similar to the import keyword, except that it works in the direction from the routing table to the protocol."</div><div><br></div><div>What confuses me is that there is *no* net =<span> </span><a href="http://10.6.130.64/26" style="color:rgb(17,85,204)" target="_blank">10.6.130.64/26</a><span> </span>in the local routing table, so where is the value of "net" coming from such that the if-net comparison can be made and the export makes sense works? I know the statement somehow does the right thing; I just don't know how to read and explain it to others in the export context.</div><div><br></div><div>Can someone please help me understand how to read this?</div><div><br></div><div>Thanks.</div></div><br></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mark</div>