We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8f60ea commit 89bd468Copy full SHA for 89bd468
netsim/ansible/templates/routing/_route_policy_junos.j2
@@ -93,7 +93,7 @@ policy-options {
93
{# if entry contains a prefix, we must add different (term) entries for ipv4 and ipv6 #}
94
{# as per juniper documentation: Prefixes specified in a from statement must be either all IPv4 addresses or all IPv6 addresses. #}
95
{% if 'prefix' in p_entry.match|default({}) %}
96
-{% for match_af in ['ipv4', 'ipv6'] %}
+{% for match_af in af if match_af in ['ipv4', 'ipv6'] %}
97
term seq{{seq}}_{{match_af}} {
98
{{ common_route_map_entry(p_entry,match_af) }}
99
{{ common_route_map_action(p_entry) }}
0 commit comments