net/frr: Add plain password authentication to OSPF (#3770)

This commit is contained in:
Michael 2024-01-24 15:53:36 +01:00 committed by GitHub
parent 0919e8e06c
commit 25dd47d776
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -149,6 +149,7 @@
<default></default>
<OptionValues>
<message-digest>MD5</message-digest>
<plain>plain</plain>
</OptionValues>
</authtype>
<authkey type="TextField">

View file

@ -31,9 +31,12 @@ interface {{ physical_interface(interface.interfacename) }}
{% if interface.networktype %}
{{ cline("network",interface.networktype)
}}{% endif %}
{{ cline("authentication",interface.authtype)
}}{% if interface.authtype and interface.authtype == 'message-digest'
%}{{ cline("message-digest-key " + interface.authkey_id + " md5",interface.authkey)
{% if interface.authtype and interface.authtype == 'message-digest'
%}{{ cline("authentication",interface.authtype)
}}{{ cline("message-digest-key " + interface.authkey_id + " md5",interface.authkey)
}}{% elif interface.authtype and interface.authtype == 'plain'
%}{{ cline("authentication",' ')
}}{{ cline("authentication-key",interface.authkey)
}}{% endif
%}{{ cline("area",interface.area)
}}{{ cline("cost",interface.cost)