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
|
||||
path metric 1;
|
||||
|
||||
import keep filtered;
|
||||
import where dnpeers_import_policy();
|
||||
export filter {
|
||||
# here we export the whole net
|
||||
if is_valid_network() then {
|
||||
accept;
|
||||
}
|
||||
|
@ -41,5 +40,4 @@ protocol pipe {
|
|||
peer table T_BGP;
|
||||
import all;
|
||||
export all;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ function check_roa() {
|
|||
print "[dn42] ROA check failed for ", net, " ASN ", bgp_path.last;
|
||||
return false;
|
||||
}
|
||||
return true:
|
||||
return true;
|
||||
}
|
||||
|
||||
function import_filter_networks() {
|
||||
|
@ -35,6 +35,6 @@ function import_filter_networks() {
|
|||
}
|
||||
|
||||
function dnpeers_import_policy() {
|
||||
if(!check_roa()) return false;
|
||||
if(!import_filter_networks()) return false:
|
||||
if(!check_roa()) then return false;
|
||||
if(!import_filter_networks()) then return false:
|
||||
}
|
Loading…
Reference in a new issue