Skip to content
Snippets Groups Projects
Commit 3f1eea87 authored by ak@geant.org's avatar ak@geant.org
Browse files

add ntp template

parent e1e59a75
No related branches found
No related tags found
1 merge request!29add ntp template
Pipeline #84732 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 to comment