Skip to content

Commit

Permalink
Merge pull request #67 from telekom/feature/mgmt-vrf-aggregates
Browse files Browse the repository at this point in the history
Template aggregates into MGMT VRF (aka skip template VRFs)
  • Loading branch information
chdxD1 authored Oct 17, 2023
2 parents 24ed7fa + 2cb1ac6 commit a0a8183
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pkg/frr/tpl/bgp-neighbor-v4.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
neighbor dv.{{$vrf.Name}} soft-reconfiguration inbound
neighbor dv.{{$vrf.Name}} route-map rm_{{$vrf.Name}}_import in
neighbor dv.{{$vrf.Name}} route-map rm_{{$vrf.Name}}_export out
{{end}}
{{- else }}
{{range $item := $vrf.AggregateIPv4}}
aggregate-address {{$item}}
{{- end }}
{{- end }}
{{- end -}}
6 changes: 5 additions & 1 deletion pkg/frr/tpl/bgp-neighbor-v6.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
neighbor dv.{{$vrf.Name}} soft-reconfiguration inbound
neighbor dv.{{$vrf.Name}} route-map rm6_{{$vrf.Name}}_import in
neighbor dv.{{$vrf.Name}} route-map rm6_{{$vrf.Name}}_export out
{{end}}
{{- else }}
{{range $item := $vrf.AggregateIPv6}}
aggregate-address {{$item}}
{{- end }}
{{- end }}
{{- end -}}

0 comments on commit a0a8183

Please sign in to comment.