diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-29 10:46:35 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-29 10:46:35 +0100 |
commit | cb52204292838ba8dd6315ff123595c96883190d (patch) | |
tree | 66314433752eda7cf3bd76c36a75237a02ee97a4 /data/templates | |
parent | 1e62e5e264f60b2e21a4855e264a5bcc8fdc32da (diff) | |
parent | ca75e23fee7e4c9f809e5cabf158e9aa749c997d (diff) | |
download | vyos-1x-cb52204292838ba8dd6315ff123595c96883190d.tar.gz vyos-1x-cb52204292838ba8dd6315ff123595c96883190d.zip |
Merge branch 't3255-rpki' of github.com:c-po/vyos-1x into current
* 't3255-rpki' of github.com:c-po/vyos-1x:
rpki: T3255: provide full protocol support in XML and Python
op-mode: ssh: support generating client keypair
smoketest: openvpn: remove print() when generating keys
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/frr/rpki.frr.tmpl | 16 |
1 files changed, 16 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..bf72c7a9e --- /dev/null +++ b/data/templates/frr/rpki.frr.tmpl @@ -0,0 +1,16 @@ +! +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 %} +! |