Update bird/bird.conf.tmpl

This commit is contained in:
sump pump 2020-05-21 01:56:08 +00:00
parent 78db4a2c4b
commit c82ac551f8

View File

@ -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