Skip to content

Commit

Permalink
use root ref instead of context ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Cellebyte committed Nov 20, 2024
1 parent fd3c25a commit 8fd0d25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/frr/tpl/route-map.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{$root .= .}}
{{range $vrf := .VRFs}}
{{if not $vrf.IsTaaS}}
{{range $i, $pl := $vrf.Import}}
Expand All @@ -10,15 +11,15 @@ exit
{{- end}}

route-map rm_{{$vrf.Name}}_export deny 1
{{if .HasCommunityDrop}}
{{if $.HasCommunityDrop}}
match community cm-received-fabric
{{else}}
match tag 20000
{{- end}}
exit

route-map rm6_{{$vrf.Name}}_export deny 1
{{if .HasCommunityDrop}}
{{if $.HasCommunityDrop}}
match community cm-received-fabric
{{else}}
match tag 20000
Expand Down

0 comments on commit 8fd0d25

Please sign in to comment.