/* Routes to announce */ protocol static static_bgp { route 2001:db8:0::/36 reject; } /* BGP templates */ function export_ebgp() { reject_martians(); accept_grenode(); reject; } function import_ebgp() { reject_martians(); reject_within_grenode(); accept; } template bgp ebgp_transit { local as my_as; preference 100; prefer older; import filter { krt_prefsrc = my_krt_prefsrc; import_ebgp(); }; export where export_ebgp(); } template bgp ebgp_ix { local as my_as; preference 1000; prefer older; import filter { krt_prefsrc = my_krt_prefsrc; import_ebgp(); }; export where export_ebgp(); } /* eBGP sessions (transits) */ protocol bgp transit1 from ebgp_transit { description "Transit 1"; neighbor 2a02:2178:3:1c::1 as 29075; export filter { bgp_path.prepend(my_as); bgp_path.prepend(my_as); export_ebgp(); }; } /* Other transits... */ /* eBGP sessions (peering) */ protocol bgp lyonix_rs1 from ebgp_ix { description "Lyonix RS1"; neighbor 2001:7f8:47:47::9 as 43100; } protocol bgp lyonix_rs2 from ebgp_ix { description "Lyonix RS2"; neighbor 2001:7f8:47:47::5 as 43100; } protocol bgp lyonix_sfr from ebgp_ix { description "Peering SFR (Lyonix)"; neighbor 2001:7f8:47:47::d as 15557; }