From 90b1a7943fec36a2c9bbf05162eb70ffdf08d288 Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Sat, 13 Oct 2018 20:49:35 +0200 Subject: [PATCH] Typos --- bgp4.conf | 6 ++---- filter4.conf | 8 ++++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/bgp4.conf b/bgp4.conf index 92b944d..45763ef 100644 --- a/bgp4.conf +++ b/bgp4.conf @@ -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; - }; -}; +} diff --git a/filter4.conf b/filter4.conf index 3ee3d36..1028953 100644 --- a/filter4.conf +++ b/filter4.conf @@ -20,11 +20,11 @@ roa table dn42_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; 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: } \ No newline at end of file