diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-02 21:54:44 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-02 21:54:44 +0100 |
commit | 3828d05afbf22915af8fc2add6fdce9b4a2ea7f4 (patch) | |
tree | b9e2e86087b3633bfb2b0d4ca0a2c427454f8bd3 /data/templates/frr/rpki.frr.tmpl | |
parent | 6b383435150077519f27304eb24d47a16fa747ec (diff) | |
download | vyos-1x-3828d05afbf22915af8fc2add6fdce9b4a2ea7f4.tar.gz vyos-1x-3828d05afbf22915af8fc2add6fdce9b4a2ea7f4.zip |
rpki: T3255: backport new implementation from current branch
Diffstat (limited to 'data/templates/frr/rpki.frr.tmpl')
-rw-r--r-- | data/templates/frr/rpki.frr.tmpl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/frr/rpki.frr.tmpl b/data/templates/frr/rpki.frr.tmpl new file mode 100644 index 000000000..346a0caa9 --- /dev/null +++ b/data/templates/frr/rpki.frr.tmpl @@ -0,0 +1,17 @@ +! +{# as FRR does not support deleting the entire rpki section we leave it in place even when it's empty #} +rpki +{% if cache is defined and cache is not none %} +{% for peer, peer_config in cache.items() %} +{# port is mandatory and preference uses a default value #} +{% if peer_config.ssh is defined and peer_config.ssh.username is defined and peer_config.ssh.username is not none %} + rpki cache {{ peer }} {{ 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 }} {{ peer_config.port }} preference {{ peer_config.preference }} +{% endif %} +{% endfor %} +{% endif %} +{% if polling_period is defined and polling_period is not none %} + rpki polling_period {{ polling_period }} +{% endif %} +! |