diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-10 17:49:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 17:49:27 +0100 |
commit | 4e867fd4bd4156605df22281bae2788bd87eb30b (patch) | |
tree | 4d53dc3f75132dec5c7e4ca3aee02c1c1d6aeaaf | |
parent | c2f7d67f9e748faa9e0beb8ec08ca87a0f270da9 (diff) | |
parent | 55c4dd3586a3b0e2fe53ccad75c996b55d9979eb (diff) | |
download | vyos-1x-4e867fd4bd4156605df22281bae2788bd87eb30b.tar.gz vyos-1x-4e867fd4bd4156605df22281bae2788bd87eb30b.zip |
Merge pull request #765 from sever-sever/T3399
rpki: T3399: Fix template dashes replace
-rw-r--r-- | data/templates/frr/rpki.frr.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/frr/rpki.frr.tmpl b/data/templates/frr/rpki.frr.tmpl index 346a0caa9..fbdfa27c3 100644 --- a/data/templates/frr/rpki.frr.tmpl +++ b/data/templates/frr/rpki.frr.tmpl @@ -5,9 +5,9 @@ rpki {% 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 }} + 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 }} {{ peer_config.port }} preference {{ peer_config.preference }} + rpki cache {{ peer | replace('_', '-') }} {{ peer_config.port }} preference {{ peer_config.preference }} {% endif %} {% endfor %} {% endif %} |