Update bird/bird.conf.tmpl
This commit is contained in:
parent
78db4a2c4b
commit
c82ac551f8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user