From 8d002eeddafbc397106388a3882f94193bb7eafa Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 18 Apr 2021 14:47:29 +0200 Subject: 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 --- data/templates/frr/policy.frr.tmpl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 %} -- cgit v1.2.3