diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2026-03-02 16:39:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 16:39:53 +0200 |
| commit | ef710a5acbd7af9f60ba63716912b0c9a20f5329 (patch) | |
| tree | a08a4b937ee2009c6b35e4bec00c2cec6102bec7 /data | |
| parent | 0c7a2b861abd4c897a2cbe4a5564effca8f9cc01 (diff) | |
| parent | 2994d3c8c19f2ad978ad00548592f6c7c3519d15 (diff) | |
| download | vyos-1x-ef710a5acbd7af9f60ba63716912b0c9a20f5329.tar.gz vyos-1x-ef710a5acbd7af9f60ba63716912b0c9a20f5329.zip | |
Merge pull request #5016 from c-po/ospf-auth
ospf: T7679: fix plaintext authentication on specific interface
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/frr/ospfd.frr.j2 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/frr/ospfd.frr.j2 b/data/templates/frr/ospfd.frr.j2 index 7277597e7..a3a8c5bcb 100644 --- a/data/templates/frr/ospfd.frr.j2 +++ b/data/templates/frr/ospfd.frr.j2 @@ -3,6 +3,7 @@ {% for iface, iface_config in interface.items() %} interface {{ iface }} {% if iface_config.authentication.plaintext_password is vyos_defined %} + ip ospf authentication ip ospf authentication-key {{ iface_config.authentication.plaintext_password }} {% elif iface_config.authentication.md5 is vyos_defined %} ip ospf authentication message-digest @@ -11,6 +12,8 @@ interface {{ iface }} ip ospf message-digest-key {{ key }} md5 {{ key_config.md5_key }} {% endfor %} {% endif %} +{% elif iface_config.authentication.null is vyos_defined %} + ip ospf authentication null {% endif %} {% if iface_config.area is vyos_defined %} ip ospf area {{ iface_config.area }} @@ -121,11 +124,14 @@ router ospf {{ 'vrf ' ~ vrf if vrf is vyos_defined }} {% if area_config.virtual_link is vyos_defined %} {% for link, link_config in area_config.virtual_link.items() %} {% if link_config.authentication.plaintext_password is vyos_defined %} + area {{ area_id }} virtual-link {{ link }} authentication area {{ area_id }} virtual-link {{ link }} authentication-key {{ link_config.authentication.plaintext_password }} {% elif link_config.authentication.md5.key_id is vyos_defined %} {% for key, key_config in link_config.authentication.md5.key_id.items() %} area {{ area_id }} virtual-link {{ link }} message-digest-key {{ key }} md5 {{ key_config.md5_key }} {% endfor %} +{% elif link_config.authentication.null is vyos_defined %} + area {{ area_id }} virtual-link {{ link }} authentication null {% endif %} {# The following values are default values #} area {{ area_id }} virtual-link {{ link }} hello-interval {{ link_config.hello_interval }} retransmit-interval {{ link_config.retransmit_interval }} retransmit-window {{ link_config.retransmit_window }} transmit-delay {{ link_config.transmit_delay }} dead-interval {{ link_config.dead_interval }} |
