26e1b9cde6
Change-Id: I2214fea8d8c1563b08c4015c9e91a29cf071af5a
21 lines
437 B
Smarty
21 lines
437 B
Smarty
# Generated by confd
|
|
|
|
function osh_filters ()
|
|
{
|
|
# support any addresses matching our secondary announcements
|
|
{{- range .Values.networking.bgp.ipv6.additional_cidrs }}
|
|
if ( net ~ {{ . }} ) then { accept; }
|
|
{{- end }}
|
|
}
|
|
|
|
filter calico_pools {
|
|
calico_aggr();
|
|
osh_filters();
|
|
{{`{{range ls "/pool"}}{{$data := json (getv (printf "/pool/%s" .))}}`}}
|
|
{{` if ( net ~ {{$data.cidr}} ) then {`}}
|
|
accept;
|
|
}
|
|
{{`{{end}}`}}
|
|
reject;
|
|
}
|