summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-18 14:47:29 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-18 14:51:45 +0200
commit8d002eeddafbc397106388a3882f94193bb7eafa (patch)
tree4d963f77909b4c59640da83abdbbea985bfa01ee /data
parent220312c74b4d73072e6cbc0137785c031a634aae (diff)
downloadvyos-1x-8d002eeddafbc397106388a3882f94193bb7eafa.tar.gz
vyos-1x-8d002eeddafbc397106388a3882f94193bb7eafa.zip
policy: T2425: add missing route-map options when rendering template
The following options one can specify in a route-map not got rendered as they have been missed out: * set comm-list * set community * set extcommunity (both route-target and site-of-origin) * set table
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/policy.frr.tmpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/frr/policy.frr.tmpl b/data/templates/frr/policy.frr.tmpl
index edb4453f0..48ff1db9c 100644
--- a/data/templates/frr/policy.frr.tmpl
+++ b/data/templates/frr/policy.frr.tmpl
@@ -234,9 +234,21 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }}
{% if rule_config.set.atomic_aggregate is defined %}
set atomic-aggregate
{% endif %}
+{% if rule_config.set.comm_list is defined and rule_config.set.comm_list.comm_list is defined and rule_config.set.comm_list.comm_list is not none %}
+ set comm-list {{ rule_config.set.comm_list.comm_list }} {{ 'delete' if rule_config.set.comm_list.delete is defined }}
+{% endif %}
+{% if rule_config.set.community is defined and rule_config.set.community is not none %}
+ set community {{ rule_config.set.community }}
+{% endif %}
{% 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_rt is defined and rule_config.set.extcommunity_rt is not none %}
+ set extcommunity rt {{ rule_config.set.extcommunity_rt }}
+{% endif %}
+{% if rule_config.set.extcommunity_soo is defined and rule_config.set.extcommunity_soo is not none %}
+ set extcommunity soo {{ rule_config.set.extcommunity_soo }}
+{% endif %}
{% if rule_config.set.ip_next_hop is defined and rule_config.set.ip_next_hop is not none %}
set ip next-hop {{ rule_config.set.ip_next_hop }}
{% endif %}
@@ -267,6 +279,9 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }}
{% if rule_config.set.src is defined and rule_config.set.src is not none %}
set src {{ rule_config.set.src }}
{% endif %}
+{% if rule_config.set.table is defined and rule_config.set.table is not none %}
+ set table {{ rule_config.set.table }}
+{% endif %}
{% if rule_config.set.tag is defined and rule_config.set.tag is not none %}
set tag {{ rule_config.set.tag }}
{% endif %}