From c82ac551f8fabb3b594a084ff14f8bc32221c5c5 Mon Sep 17 00:00:00 2001 From: sump pump Date: Thu, 21 May 2020 01:56:08 +0000 Subject: [PATCH] Update bird/bird.conf.tmpl --- bird/bird.conf.tmpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bird/bird.conf.tmpl b/bird/bird.conf.tmpl index 79a4b7b..21d0ce4 100644 --- a/bird/bird.conf.tmpl +++ b/bird/bird.conf.tmpl @@ -42,9 +42,8 @@ function is_lixonet_router() function is_own_route() { - return net ~ [ - {{ if len "${routes:-}" }}{{ range "$routes" | split "," }}{{.}}+, {{ end }}{{ end }} - ]; + {{ if len "${routes:-}" }}{{ range "$routes" | split "," }}if net ~ [ {{.}}+ ] then return true;{{ end }}{{ end }} + return false; } filter bgp_import_filter