From 8a75e92d9172309f76b3a292f4419d68b5ed5eb8 Mon Sep 17 00:00:00 2001 From: Kyle McClammy Date: Sat, 4 Feb 2023 00:54:35 +0000 Subject: T4817 added support for RFC 9234 --- data/templates/frr/bgpd.frr.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data/templates/frr/bgpd.frr.j2') 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 %} -- cgit v1.2.3 From 55bf752570019e1b3b756b25f500cd9bf17efb01 Mon Sep 17 00:00:00 2001 From: Kyle McClammy Date: Sat, 4 Feb 2023 02:09:39 +0000 Subject: T4817, Corrected formatting. --- data/templates/frr/bgpd.frr.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'data/templates/frr/bgpd.frr.j2') diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2 index 18192deef..b8692f344 100644 --- a/data/templates/frr/bgpd.frr.j2 +++ b/data/templates/frr/bgpd.frr.j2 @@ -9,10 +9,10 @@ {% 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 %} +{% 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 }} -- cgit v1.2.3