From 607339f6593514a4b4b37b95fd97e5e2d2039585 Mon Sep 17 00:00:00 2001 From: sever-sever Date: Wed, 10 Mar 2021 12:46:12 +0000 Subject: rpki: T3399: Fix template dashes replace (cherry picked from commit 55c4dd3586a3b0e2fe53ccad75c996b55d9979eb) --- data/templates/frr/rpki.frr.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/templates') 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 %} -- cgit v1.2.3