summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorKyle McClammy <kylem@serverforge.org>2023-02-04 00:54:35 +0000
committerKyle McClammy <kylem@serverforge.org>2023-02-04 00:54:35 +0000
commit8a75e92d9172309f76b3a292f4419d68b5ed5eb8 (patch)
tree68750aa8984581708e666a152ee9758c611ab965 /data
parentbcee46aaed5b612f39e3b34776d3353a2fd1d42e (diff)
downloadvyos-1x-8a75e92d9172309f76b3a292f4419d68b5ed5eb8.tar.gz
vyos-1x-8a75e92d9172309f76b3a292f4419d68b5ed5eb8.zip
T4817 added support for RFC 9234
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/bgpd.frr.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2
index 85c3339bf..18192deef 100644
--- a/data/templates/frr/bgpd.frr.j2
+++ b/data/templates/frr/bgpd.frr.j2
@@ -9,6 +9,11 @@
{% if config.remote_as is vyos_defined %}
neighbor {{ neighbor }} remote-as {{ config.remote_as }}
{% endif %}
+{% if config.local_role is vyos_defined %}
+{% for role, strict in config.local_role.items() %}
+ neighbor {{ neighbor }} local-role {{ role }} {{ 'strict-mode' if strict }}
+{% endfor %}
+{% endif %}
{% if config.interface.remote_as is vyos_defined %}
neighbor {{ neighbor }} interface remote-as {{ config.interface.remote_as }}
{% endif %}