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

Merge branch 'ntp' into 'develop'

add ntp template

See merge request !29
parents e1e59a75 3f1eea87
No related branches found
No related tags found
1 merge request!29add ntp template
Pipeline #84733 passed
<system>
<time>
<ntp alu:operation="replace">
{% for server in system_ntp.servers %}
<server 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">
<ip-address>{{ server.address }}</ip-address>
<router-instance>Base</router-instance>
{% if server.key is defined %}
<key-id>{{server.key}}</key-id>
{% endif %}
</server>
{% endfor %}
{% for key in system_ntp.ntp_keys %}
<authentication-key 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">
<key-id>{{ key.id }}</key-id>
<key>{{ key.nokia_key_hash }}</key>
<type>message-digest</type>
</authentication-key>
{% endfor %}
</ntp>
</time>
</system>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment