diff options
author | Christian Breunig <christian@breunig.cc> | 2023-02-04 13:24:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-04 13:24:24 +0100 |
commit | 3329943339ce7f5b8dc108ad4528fb9d48ef70fa (patch) | |
tree | 6fbc3419a56d0334e910f51dad81a7e5c69f70f0 /data/templates/frr/bgpd.frr.j2 | |
parent | 182da4fa10c1a5f45e52a3d7949acb3a3d2eb266 (diff) | |
parent | 55bf752570019e1b3b756b25f500cd9bf17efb01 (diff) | |
download | vyos-1x-3329943339ce7f5b8dc108ad4528fb9d48ef70fa.tar.gz vyos-1x-3329943339ce7f5b8dc108ad4528fb9d48ef70fa.zip |
Merge pull request #1797 from ServerForge/current
bgp: T4817: add support for RFC9234
Diffstat (limited to 'data/templates/frr/bgpd.frr.j2')
-rw-r--r-- | data/templates/frr/bgpd.frr.j2 | 5 |
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..b8692f344 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 %} |