Cleaning up stuff, renaming things a little

This commit is contained in:
Jesper Hess 2018-10-14 10:27:14 +02:00
parent dddb9217ac
commit f9215518f7
Signed by: graffen
GPG Key ID: 351A89E40D763F0F
5 changed files with 12 additions and 14 deletions

View File

@ -1,9 +1,9 @@
template bgp dnpeers {
template bgp dn42peer {
local as OWNAS;
table T_BGP;
path metric 1;
import keep filtered;
import where dnpeers_import_policy();
import where dn42peer_import_policy();
export filter {
if is_valid_network() then {
accept;
@ -12,14 +12,12 @@ template bgp dnpeers {
};
};
template bgp iBGP_Peer {
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 where iBGP_export_peer_policy();
import all;
export all;
source address OWNIP_IBGP;

View File

@ -1,9 +1,9 @@
template bgp dnpeers {
template bgp dn42peer {
local as OWNAS;
table T_BGP;
path metric 1;
import keep filtered on;
import where dnpeers_import_policy();
import where dn42peer_import_policy();
export filter {
if is_valid_network() then {
accept;
@ -12,7 +12,7 @@ template bgp dnpeers {
};
};
template bgp iBGP_Peer {
template bgp ibgppeer {
local as OWNAS;
hold time 15;
igp table T_OSPF;

View File

@ -1,4 +1,5 @@
log "/var/log/bird.log" { debug, trace, info, remote, warning, error, auth, fatal, bug };
table T_BGP;
table T_OSPF;
@ -12,10 +13,6 @@ protocol static {
export none;
}
include "/etc/bird/local4.conf";
include "/etc/bird/filter4.conf";
include "/etc/bird/community_filters.conf";
protocol kernel {
scan time 20;
metric 64; # Use explicit kernel route metric to avoid collisions
@ -29,6 +26,9 @@ protocol kernel {
};
}
include "/etc/bird/local4.conf";
include "/etc/bird/filter4.conf";
include "/etc/bird/community_filters.conf";
include "/etc/bird/ospf4.conf";
include "/etc/bird/bgp4.conf";
include "/etc/bird/peers4/*";

View File

@ -34,7 +34,7 @@ function import_filter_networks() {
return false;
}
function dnpeers_import_policy() {
function dn42peer_import_policy() {
if(!check_roa()) then return false;
if(!import_filter_networks()) then return false;
}

View File

@ -27,7 +27,7 @@ function import_filter_networks() {
return false;
}
function dnpeers_import_policy() {
function dn42peer_import_policy() {
if(!check_roa()) then return false;
if(!import_filter_networks()) then return false;
}