template bgp dn42peer { local as OWNAS; table T_BGP; path metric 1; import keep filtered; import filter { print "WARNING!! no community import filter set, all routes will be rejected"; reject; }; export filter { print "WARNING!! no community import filter set, all routes will be rejected"; reject; }; }; template bgp ibgppeer { local as OWNAS; hold time 15; igp table T_OSPF; path metric on; import keep filtered; import where iBGP_import_peer_policy(); export filter { if is_self_net() then { reject; } accept; }; source address OWNIP; next hop self; } template pipe iBGP_Pipe { peer table master; import all; export all; } template pipe dn42peer_pipe { peer table master; import all; export all; } protocol pipe P_BGP_to_Master { table master; peer table T_BGP; import all; export all; }