Skip to content
Snippets Groups Projects
Commit 5f6ff036 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Merge branch 'fix/base-config-ssh-preserve-key' into 'develop'

Remove the default config from SSH template

See merge request !130
parents d28d64d2 dcc129ce
No related branches found
No related tags found
1 merge request!130Remove the default config from SSH template
Pipeline #86112 passed
......@@ -9,6 +9,6 @@
{% include "system/security/dist_cpu_protection.j2" %}
{% include "system/security/source_addresses.j2" %}
{% include "system/security/snmp.j2" %}
{# {% include "system/security/ssh.j2" %} #}
{% include "system/security/ssh.j2" %}
</security>
</system>
<ssh xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes">
<preserve-key alu:operation="replace">{{ nokia_ssh_config.preserve_key }}</preserve-key>
<server-cipher-list-v2 alu:operation="replace">
{% set ns = namespace(idx = 10 | int) %}
{% for cipher in nokia_ssh_config.server_cipher_list_v2 %}
<cipher>
<index>{{ ns.idx }}</index>
<name>{{ cipher }}</name>
</cipher>
{% set ns.idx = ns.idx + 10 %}
{% endfor %}
</server-cipher-list-v2>
<client-cipher-list-v2 alu:operation="replace">
{% set ns = namespace(idx = 10 | int) %}
{% for cipher in nokia_ssh_config.client_cipher_list_v2 %}
<cipher>
<index>{{ ns.idx }}</index>
<name>{{ cipher }}</name>
</cipher>
{% set ns.idx = ns.idx + 10 %}
{% endfor %}
</client-cipher-list-v2>
<server-mac-list-v2 alu:operation="replace">
{% set ns = namespace(idx = 10 | int) %}
{% for mac in nokia_ssh_config.server_mac_list_v2 %}
<mac>
<index>{{ ns.idx }}</index>
<name>{{ mac }}</name>
</mac>
{% set ns.idx = ns.idx + 10 %}
{% endfor %}
</server-mac-list-v2>
<client-mac-list-v2 alu:operation="replace">
{% set ns = namespace(idx = 10 | int) %}
{% for mac in nokia_ssh_config.client_mac_list_v2 %}
<mac>
<index>{{ ns.idx }}</index>
<name>{{ mac }}</name>
</mac>
{% set ns.idx = ns.idx + 10 %}
{% endfor %}
</client-mac-list-v2>
{# <server-cipher-list-v2 alu:operation="replace"> #}
{# {% set ns = namespace(idx = 10 | int) %} #}
{# {% for cipher in nokia_ssh_config.server_cipher_list_v2 %} #}
{# <cipher> #}
{# <index>{{ ns.idx }}</index> #}
{# <name>{{ cipher }}</name> #}
{# </cipher> #}
{# {% set ns.idx = ns.idx + 10 %} #}
{# {% endfor %} #}
{# </server-cipher-list-v2> #}
{# <client-cipher-list-v2 alu:operation="replace"> #}
{# {% set ns = namespace(idx = 10 | int) %} #}
{# {% for cipher in nokia_ssh_config.client_cipher_list_v2 %} #}
{# <cipher> #}
{# <index>{{ ns.idx }}</index> #}
{# <name>{{ cipher }}</name> #}
{# </cipher> #}
{# {% set ns.idx = ns.idx + 10 %} #}
{# {% endfor %} #}
{# </client-cipher-list-v2> #}
{# <server-mac-list-v2 alu:operation="replace"> #}
{# {% set ns = namespace(idx = 10 | int) %} #}
{# {% for mac in nokia_ssh_config.server_mac_list_v2 %} #}
{# <mac> #}
{# <index>{{ ns.idx }}</index> #}
{# <name>{{ mac }}</name> #}
{# </mac> #}
{# {% set ns.idx = ns.idx + 10 %} #}
{# {% endfor %} #}
{# </server-mac-list-v2> #}
{# <client-mac-list-v2 alu:operation="replace"> #}
{# {% set ns = namespace(idx = 10 | int) %} #}
{# {% for mac in nokia_ssh_config.client_mac_list_v2 %} #}
{# <mac> #}
{# <index>{{ ns.idx }}</index> #}
{# <name>{{ mac }}</name> #}
{# </mac> #}
{# {% set ns.idx = ns.idx + 10 %} #}
{# {% endfor %} #}
{# </client-mac-list-v2> #}
</ssh>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment