2018-10-14 08:27:14 +00:00
|
|
|
template bgp dn42peer {
|
2018-09-15 18:52:01 +00:00
|
|
|
local as OWNAS;
|
2018-10-10 16:10:26 +00:00
|
|
|
table T_BGP;
|
2018-09-15 18:52:01 +00:00
|
|
|
path metric 1;
|
|
|
|
import keep filtered on;
|
2018-10-14 08:27:14 +00:00
|
|
|
import where dn42peer_import_policy();
|
2018-10-13 18:56:18 +00:00
|
|
|
export filter {
|
|
|
|
if is_valid_network() then {
|
|
|
|
accept;
|
|
|
|
}
|
|
|
|
reject;
|
|
|
|
};
|
2018-09-15 18:52:01 +00:00
|
|
|
};
|
|
|
|
|
2018-10-14 08:27:14 +00:00
|
|
|
template bgp ibgppeer {
|
2018-09-15 18:52:01 +00:00
|
|
|
local as OWNAS;
|
2018-10-10 16:10:26 +00:00
|
|
|
hold time 15;
|
|
|
|
igp table T_OSPF;
|
2018-09-15 18:52:01 +00:00
|
|
|
path metric on;
|
|
|
|
import keep filtered;
|
|
|
|
# import where iBGP_import_peer_policy();
|
|
|
|
# export where iBGP_export_peer_policy();
|
|
|
|
import all;
|
|
|
|
export all;
|
|
|
|
source address OWNIP;
|
|
|
|
next hop self;
|
|
|
|
}
|
|
|
|
|
|
|
|
template pipe iBGP_Pipe {
|
|
|
|
peer table master;
|
|
|
|
import all;
|
|
|
|
export all;
|
|
|
|
}
|
|
|
|
|
2018-10-06 22:39:50 +00:00
|
|
|
|
2018-09-15 18:52:01 +00:00
|
|
|
protocol pipe {
|
|
|
|
table master;
|
2018-10-10 16:10:26 +00:00
|
|
|
peer table T_BGP;
|
2018-10-13 18:56:18 +00:00
|
|
|
import all;
|
|
|
|
export all;
|
2018-09-15 18:52:01 +00:00
|
|
|
};
|