summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-02 14:43:32 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-02 14:43:32 +0200
commitcf8a8c0def7e56f1cc47c6c786c72671c32e060b (patch)
tree5898c75f586a3b534a4743cfad6c1a7027aafeb0
parentc58a03ad76b2a0680a33fcfec3ab7a3545374abb (diff)
downloadvyos-1x-cf8a8c0def7e56f1cc47c6c786c72671c32e060b.tar.gz
vyos-1x-cf8a8c0def7e56f1cc47c6c786c72671c32e060b.zip
udp-broadcast-relay: T4333: migrate to new vyos_defined Jinja2 test
-rw-r--r--data/templates/bcast-relay/udp-broadcast-relay.tmpl6
1 files changed, 2 insertions, 4 deletions
diff --git a/data/templates/bcast-relay/udp-broadcast-relay.tmpl b/data/templates/bcast-relay/udp-broadcast-relay.tmpl
index 73e9acad4..7b2b9b1a2 100644
--- a/data/templates/bcast-relay/udp-broadcast-relay.tmpl
+++ b/data/templates/bcast-relay/udp-broadcast-relay.tmpl
@@ -1,7 +1,5 @@
### Autogenerated by bcast_relay.py ###
# UDP broadcast relay configuration for instance {{ id }}
-{% if description %}
-# Comment: {{ description }}
-{% endif %}
-DAEMON_ARGS="{{ '-s ' + address if address is defined }} {{ instance }} {{ port }} {{ interface | join(' ') }}"
+{{ '# ' ~ description if description is vyos_defined }}
+DAEMON_ARGS="{{ '-s ' ~ address if address is defined }} {{ instance }} {{ port }} {{ interface | join(' ') }}"