need some help with filters

D.Wesołowski wesoly at klu.pl
Fri Dec 4 23:15:16 CET 2015


Hi,

I made bird.conf based on examples
http://wklej.org/id/1862384/

import:
ARPNET - full BGP table
EPIX - IX openpeerint
EP_GLOBAL - full BGP table

export:
ARPNET full BGP table
EPIX - only statc_bgp, ARPNET prefix
EP_GLOBAL - only static, bgp, ARPNET prefix

I want to export to other bgp session
prefix from ARPNET only when path is direct

function rt_export()
{
   if proto = "static_bgp" then return true;
   if source != RTS_BGP then return false;
   if net_martian() then return false;
   if bgp_path.len > 64 then return false;
   #return bgp_next_hop ~ [ 193.151.48.18 ];
   return (bgp_path.first ~ [ 51931, 51944 ]);
   #if bgp_path.first ~ [ 51931, 51944 ] then return true;

}

the last two line don't works.
I'm looking for some hint to make it work as I want ;)

TIA

-- 
D.Wesolowski


More information about the Bird-users mailing list