From bdba331cb0501cc2db6aeaa486d7763e184133ce Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 8 Jun 2021 08:26:02 +0200 Subject: policy: T3605: add support to prefer IPv6 global next-hop address in route-map --- data/templates/frr/policy.frr.tmpl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data/templates/frr') diff --git a/data/templates/frr/policy.frr.tmpl b/data/templates/frr/policy.frr.tmpl index 881afa21f..507ee2a14 100644 --- a/data/templates/frr/policy.frr.tmpl +++ b/data/templates/frr/policy.frr.tmpl @@ -262,6 +262,9 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }} {% if rule_config.set.ipv6_next_hop is defined and rule_config.set.ipv6_next_hop.local is defined and rule_config.set.ipv6_next_hop.local is not none %} set ipv6 next-hop local {{ rule_config.set.ipv6_next_hop.local }} {% endif %} +{% if rule_config.set.ipv6_next_hop is defined and rule_config.set.ipv6_next_hop.prefer_global is defined %} + set ipv6 next-hop prefer-global +{% endif %} {% if rule_config.set.large_community is defined and rule_config.set.large_community is not none %} set large-community {{ rule_config.set.large_community }} {% endif %} -- cgit v1.2.3