Skip to content

Commit c1cadb2

Browse files
authored
Fix Junos EVPN routing policies (#3316)
With the change in the BGP routing policy names, we also had to change the corresponding names in the EVPN configuration template. Also, the default-reject term has to be deleted and inserted at the end when adding the 'match evpn' term.
1 parent 83aa816 commit c1cadb2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

netsim/ansible/templates/evpn/junos/common.j2

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ routing-instances {
146146
advertise direct-nexthop;
147147
encapsulation vxlan;
148148
vni {{ v.evpn.transit_vni }};
149-
export [ vrf-{{n}}-bgp-export bgp-final ];
149+
export [ bgp-{{n}}-redistribute bgp-final ];
150150
}
151151
{% endif %}
152152
}
@@ -168,14 +168,19 @@ policy-options {
168168
}
169169
}
170170
}
171-
policy-statement vrf-{{n}}-bgp-export {
171+
policy-statement bgp-{{n}}-redistribute {
172+
delete: term default;
173+
172174
term redis_evpn {
173175
from protocol evpn;
174176
then {
175177
community add x-route-permit-mark;
176178
next policy;
177179
}
178180
}
181+
term default {
182+
then reject;
183+
}
179184
}
180185
{% endfor %}
181186
}

0 commit comments

Comments
 (0)