filter bgp_in_ASXXXX prefix set PL_in_XXXX; { if ! (avoid_martians()) then reject; if (bgp_path.first != XXXX ) then reject; PL_in_XXXX = [ a.b.c.d {16,24}, c.d.f.d/24 ]; if net ~ PL_in_XXXX then accept; else reject; } # Protocol templates template bgp PEERS{ local as YYYY; route limit 1000; export all; rs client; } protocol bgp Raha from PEERS{ description "Peer-Raha"; neighbor 196.223.B.C as XXXX; import filter bgp_in_ASXXXX; }