Typos
This commit is contained in:
parent
ca50385f87
commit
90b1a7943f
|
@ -4,10 +4,9 @@ template bgp dnpeers {
|
||||||
|
|
||||||
# metric is the number of hops between us and the peer
|
# metric is the number of hops between us and the peer
|
||||||
path metric 1;
|
path metric 1;
|
||||||
|
import keep filtered;
|
||||||
import where dnpeers_import_policy();
|
import where dnpeers_import_policy();
|
||||||
export filter {
|
export filter {
|
||||||
# here we export the whole net
|
|
||||||
if is_valid_network() then {
|
if is_valid_network() then {
|
||||||
accept;
|
accept;
|
||||||
}
|
}
|
||||||
|
@ -41,5 +40,4 @@ protocol pipe {
|
||||||
peer table T_BGP;
|
peer table T_BGP;
|
||||||
import all;
|
import all;
|
||||||
export all;
|
export all;
|
||||||
};
|
}
|
||||||
};
|
|
||||||
|
|
|
@ -20,11 +20,11 @@ roa table dn42_roa {
|
||||||
};
|
};
|
||||||
|
|
||||||
function check_roa() {
|
function check_roa() {
|
||||||
if (roa_check(dn42_roa, net, bgp_path.last) = ROA_INVALID) then {
|
if (roa_check(dn42_roa, net, bgp_path.last) = ROA_INVALID) then {
|
||||||
print "[dn42] ROA check failed for ", net, " ASN ", bgp_path.last;
|
print "[dn42] ROA check failed for ", net, " ASN ", bgp_path.last;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true:
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function import_filter_networks() {
|
function import_filter_networks() {
|
||||||
|
@ -35,6 +35,6 @@ function import_filter_networks() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function dnpeers_import_policy() {
|
function dnpeers_import_policy() {
|
||||||
if(!check_roa()) return false;
|
if(!check_roa()) then return false;
|
||||||
if(!import_filter_networks()) return false:
|
if(!import_filter_networks()) then return false:
|
||||||
}
|
}
|
Loading…
Reference in a new issue