summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-14 12:46:49 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-14 13:03:34 +0100
commit5868cbeba1bd9a4c3daaad7aa81af5c45e00cd16 (patch)
tree7adbfc4f0c17148615de9b29a5c18a5c11b3967f /data
parenta2062824f21432031e65db0f16954f18aba19bec (diff)
downloadvyos-1x-5868cbeba1bd9a4c3daaad7aa81af5c45e00cd16.tar.gz
vyos-1x-5868cbeba1bd9a4c3daaad7aa81af5c45e00cd16.zip
bgp: T2844: add IPv4 disable-send-community support
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/bgp.frr.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl
index 62c675291..ab0f94c33 100644
--- a/data/templates/frr/bgp.frr.tmpl
+++ b/data/templates/frr/bgp.frr.tmpl
@@ -155,6 +155,12 @@
{% if afi_config.unsuppress_map is defined and afi_config.unsuppress_map is not none %}
neighbor {{ neighbor }} unsuppress-map {{ afi_config.unsuppress_map }}
{% endif %}
+{% if afi_config.disable_send_community is defined and afi_config.disable_send_community.extended is defined %}
+ no neighbor {{ neighbor }} send-community extended
+{% endif %}
+{% if afi_config.disable_send_community is defined and afi_config.disable_send_community.standard is defined %}
+ no neighbor {{ neighbor }} send-community standard
+{% endif %}
neighbor {{ neighbor }} activate
exit-address-family
!