summaryrefslogtreecommitdiff
path: root/data/templates/frr/rpki.frr.tmpl.j2
blob: 9a549d6deb66249436a1300c57825707a11d4268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
!
{# as FRR does not support deleting the entire rpki section we leave it in place even when it's empty #}
rpki
{% if cache is vyos_defined %}
{%     for peer, peer_config in cache.items() %}
{#         port is mandatory and preference uses a default value #}
{%         if peer_config.ssh.username is vyos_defined %}
 rpki cache {{ peer | replace('_', '-') }} {{ peer_config.port }} {{ peer_config.ssh.username }} {{ peer_config.ssh.private_key_file }} {{ peer_config.ssh.public_key_file }} {{ peer_config.ssh.known_hosts_file }} preference {{ peer_config.preference }}
{%         else %}
 rpki cache {{ peer | replace('_', '-') }} {{ peer_config.port }} preference {{ peer_config.preference }}
{%         endif %}
{%     endfor %}
{% endif %}
{% if polling_period is vyos_defined %}
 rpki polling_period {{ polling_period }}
{% endif %}
exit
!