<div dir="ltr"><div><div><div><div><div><div><div>Hello.<br><br></div>i'm trying to configure bird for working with uplinks and downlinks with this example:<br><a href="https://gitlab.labs.nic.cz/labs/bird/wikis/BGP_filtering">https://gitlab.labs.nic.cz/labs/bird/wikis/BGP_filtering</a><br><br></div>i'm using truncated function:<br><br>function rt_export()<br>{<br>  if proto = "static_bgp" then return true;<br>  if source != RTS_BGP then return false;<br>  return bgp_path.first ~ [ downlink1AS, downlink2AS ];<br>}<br></div><br></div></div></div></div>But this incorrectly works - bird trying to export my full-view to uplink.<br><br>Then, when i changed to<br><br>if ( bgp_path.len = 2 ) && ( bgp_path.first = myAS ) then return bgp_path ~ [ downlink1AS, downlink2AS ];<br><br>...it works.<br><br>What i'm (or my bird) doing wrong? Or maybe this example is not correct?<br></div>