diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-16 20:23:18 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-16 20:23:18 +0200 |
commit | 3a90c7a333ef90fea6cd520483d5849fc979f614 (patch) | |
tree | aa813a7a945acaa0dd863a6042edfd24e8ed8d38 /data | |
parent | 6cfcf7a761adb3e51f9279611435a39a1424e9c9 (diff) | |
download | vyos-1x-3a90c7a333ef90fea6cd520483d5849fc979f614.tar.gz vyos-1x-3a90c7a333ef90fea6cd520483d5849fc979f614.zip |
policy: T3631: migrate "set extcommunity-rt/soo" to "set extcommunity rt|soo"
Thi adds a new configuration level "set extcommunity" which then holds rt and
soo als leaf-nodes below. This is the foundational work required to
properly implement T3624 ("BGP: add support for extended community bandwidth
definition")
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/frr/policy.frr.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/frr/policy.frr.tmpl b/data/templates/frr/policy.frr.tmpl index 507ee2a14..a16eacdef 100644 --- a/data/templates/frr/policy.frr.tmpl +++ b/data/templates/frr/policy.frr.tmpl @@ -247,11 +247,11 @@ 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_rt is defined and rule_config.set.extcommunity_rt is not none %} - set extcommunity rt {{ rule_config.set.extcommunity_rt }} +{% 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 %} -{% 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 }} +{% if rule_config.set.extcommunity is defined and 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 }} |