summaryrefslogtreecommitdiff
path: root/data/templates/iproute2
diff options
context:
space:
mode:
authorAlex W <embezzle.dev@proton.me>2024-04-23 18:07:18 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-04-23 18:46:22 +0000
commit345b1296432f23ca44e3da60fd1250eefc4e2fc4 (patch)
treee61e24ab7232ef5f2f094b14a58a5c547f2d5f53 /data/templates/iproute2
parentb4723973c3b4c2fe66d0d891ef539ad1df3b8416 (diff)
downloadvyos-1x-345b1296432f23ca44e3da60fd1250eefc4e2fc4.tar.gz
vyos-1x-345b1296432f23ca44e3da60fd1250eefc4e2fc4.zip
T6255: static-routing: don't render whitespace from static table descriptions
(cherry picked from commit 8602c84e1b7c0da4c4c57fc2d034ec18497303fd)
Diffstat (limited to 'data/templates/iproute2')
-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 %}