summaryrefslogtreecommitdiff
path: root/data/templates/frr/policy.frr.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-08 09:46:57 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-08 10:25:17 +0200
commitd0497af1a1412d3a01a764bc14f66a3da2e82e69 (patch)
tree9801ebd10dba419beb1dfadd8774c6197e4df793 /data/templates/frr/policy.frr.j2
parentda9fb81131db0e4ca3566cac31257ee212638406 (diff)
downloadvyos-1x-d0497af1a1412d3a01a764bc14f66a3da2e82e69.tar.gz
vyos-1x-d0497af1a1412d3a01a764bc14f66a3da2e82e69.zip
policy: evpn: T3739: support "set evpn gateway-ip"
Diffstat (limited to 'data/templates/frr/policy.frr.j2')
-rw-r--r--data/templates/frr/policy.frr.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/frr/policy.frr.j2 b/data/templates/frr/policy.frr.j2
index f0a64cb89..a42b73e98 100644
--- a/data/templates/frr/policy.frr.j2
+++ b/data/templates/frr/policy.frr.j2
@@ -259,6 +259,12 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }}
{% if rule_config.set.distance is vyos_defined %}
set distance {{ rule_config.set.distance }}
{% endif %}
+{% if rule_config.set.evpn.gateway.ipv4 is vyos_defined %}
+ set evpn gateway-ip ipv4 {{ rule_config.set.evpn.gateway.ipv4 }}
+{% endif %}
+{% if rule_config.set.evpn.gateway.ipv6 is vyos_defined %}
+ set evpn gateway-ip ipv6 {{ rule_config.set.evpn.gateway.ipv6 }}
+{% endif %}
{% if rule_config.set.extcommunity.bandwidth is vyos_defined %}
set extcommunity bandwidth {{ rule_config.set.extcommunity.bandwidth }}
{% endif %}