summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-16 20:41:36 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-16 20:41:36 +0200
commit36a6f3771fd78b3d035d44679411f5e648fb90f2 (patch)
tree72745565a84b1995c668b2cc5ceaf1fa2abfafea /data
parent3a90c7a333ef90fea6cd520483d5849fc979f614 (diff)
downloadvyos-1x-36a6f3771fd78b3d035d44679411f5e648fb90f2.tar.gz
vyos-1x-36a6f3771fd78b3d035d44679411f5e648fb90f2.zip
policy: T3624: add extended community bandwith support to route-map
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/policy.frr.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/policy.frr.tmpl b/data/templates/frr/policy.frr.tmpl
index a16eacdef..b5649b44e 100644
--- a/data/templates/frr/policy.frr.tmpl
+++ b/data/templates/frr/policy.frr.tmpl
@@ -247,6 +247,9 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }}
{% if rule_config.set.distance is defined and rule_config.set.distance is not none %}
set distance {{ rule_config.set.distance }}
{% endif %}
+{% if rule_config.set.extcommunity is defined and rule_config.set.extcommunity.bandwidth is defined and rule_config.set.extcommunity.bandwidth is not none %}
+ set extcommunity bandwidth {{ rule_config.set.extcommunity.bandwidth }}
+{% endif %}
{% if rule_config.set.extcommunity is defined and rule_config.set.extcommunity.rt is defined and rule_config.set.extcommunity.rt is not none %}
set extcommunity rt {{ rule_config.set.extcommunity.rt }}
{% endif %}