summaryrefslogtreecommitdiff
path: root/data/templates/iproute2/static.conf.j2
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-23 20:48:19 +0200
committerGitHub <noreply@github.com>2024-04-23 20:48:19 +0200
commit2ea5aa9b5832a073b4e8d2fcdc7190d01f6a1519 (patch)
treee61e24ab7232ef5f2f094b14a58a5c547f2d5f53 /data/templates/iproute2/static.conf.j2
parentb4723973c3b4c2fe66d0d891ef539ad1df3b8416 (diff)
parent345b1296432f23ca44e3da60fd1250eefc4e2fc4 (diff)
downloadvyos-1x-2ea5aa9b5832a073b4e8d2fcdc7190d01f6a1519.tar.gz
vyos-1x-2ea5aa9b5832a073b4e8d2fcdc7190d01f6a1519.zip
Merge pull request #3357 from vyos/mergify/bp/sagitta/pr-3340
T6255: static-routing: don't render whitespace from static table descriptions (backport #3340)
Diffstat (limited to 'data/templates/iproute2/static.conf.j2')
-rw-r--r--data/templates/iproute2/static.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/iproute2/static.conf.j2 b/data/templates/iproute2/static.conf.j2
index 10c9bdab7..249483ab3 100644
--- a/data/templates/iproute2/static.conf.j2
+++ b/data/templates/iproute2/static.conf.j2
@@ -2,7 +2,7 @@
{% if table is vyos_defined %}
{% for t, t_options in table.items() %}
{% if t_options.description is vyos_defined %}
-{{ "%-6s" | format(t) }} {{ "%-40s" | format(t_options.description) }}
+{{ "%-6s" | format(t) }} {{ "%-40s" | format(t_options.description | replace(" ", "_")) }}
{% endif %}
{% endfor %}
{% endif %}