From 8fd0d2539bb3508cd4f811ac8619aa0932975ed8 Mon Sep 17 00:00:00 2001 From: Marcel Fest Date: Wed, 20 Nov 2024 19:16:58 +0100 Subject: [PATCH] use root ref instead of context ref --- pkg/frr/tpl/route-map.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/frr/tpl/route-map.tpl b/pkg/frr/tpl/route-map.tpl index a7b9026..3d7c72c 100644 --- a/pkg/frr/tpl/route-map.tpl +++ b/pkg/frr/tpl/route-map.tpl @@ -1,3 +1,4 @@ +{{$root .= .}} {{range $vrf := .VRFs}} {{if not $vrf.IsTaaS}} {{range $i, $pl := $vrf.Import}} @@ -10,7 +11,7 @@ exit {{- end}} route-map rm_{{$vrf.Name}}_export deny 1 -{{if .HasCommunityDrop}} +{{if $.HasCommunityDrop}} match community cm-received-fabric {{else}} match tag 20000 @@ -18,7 +19,7 @@ route-map rm_{{$vrf.Name}}_export deny 1 exit route-map rm6_{{$vrf.Name}}_export deny 1 -{{if .HasCommunityDrop}} +{{if $.HasCommunityDrop}} match community cm-received-fabric {{else}} match tag 20000