summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-13 17:08:40 +0200
committerGitHub <noreply@github.com>2021-08-13 17:08:40 +0200
commit326cab3da592ee5255ed1f66025a91ac6892d429 (patch)
tree3f1f70835d0282c1861d62c777346329f24362c1
parenta342406a362321917130c8d565dba7ebaec27b22 (diff)
parentc7b8e12beb7c90a5531c81303fa4837bd9f51782 (diff)
downloadvyos-1x-326cab3da592ee5255ed1f66025a91ac6892d429.tar.gz
vyos-1x-326cab3da592ee5255ed1f66025a91ac6892d429.zip
Merge pull request #914 from sever-sever/T3673
policy: T3673: Add set large-comm-list for route-map
-rw-r--r--data/templates/frr/policy.frr.tmpl3
-rw-r--r--interface-definitions/policy.xml.in12
2 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/frr/policy.frr.tmpl b/data/templates/frr/policy.frr.tmpl
index b5649b44e..57ab0f363 100644
--- a/data/templates/frr/policy.frr.tmpl
+++ b/data/templates/frr/policy.frr.tmpl
@@ -271,6 +271,9 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }}
{% if rule_config.set.large_community is defined and rule_config.set.large_community is not none %}
set large-community {{ rule_config.set.large_community }}
{% endif %}
+{% if rule_config.set.large_comm_list_delete is defined and rule_config.set.large_comm_list_delete is not none %}
+ set large-comm-list {{ rule_config.set.large_comm_list_delete }} delete
+{% endif %}
{% if rule_config.set.local_preference is defined and rule_config.set.local_preference is not none %}
set local-preference {{ rule_config.set.local_preference }}
{% endif %}
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in
index 5a3c58fa8..02da76be4 100644
--- a/interface-definitions/policy.xml.in
+++ b/interface-definitions/policy.xml.in
@@ -1124,6 +1124,18 @@
</completionHelp>
</properties>
</leafNode>
+ <leafNode name="large-comm-list-delete">
+ <properties>
+ <help>Delete BGP communities matching the large community-list</help>
+ <completionHelp>
+ <path>policy large-community-list</path>
+ </completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>BGP large community-list</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
<leafNode name="local-preference">
<properties>
<help>Border Gateway Protocol (BGP) local preference attribute</help>