summaryrefslogtreecommitdiff
path: root/data/templates/bcast-relay
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-19 10:51:00 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-19 10:51:00 +0200
commitdadb09fd14046720e7898c3cbad8c5def408db9d (patch)
treeaefae9962f7fdfe2969ab7483f64a1a6dbc90b4f /data/templates/bcast-relay
parentdaa810f81ce03cc0f51dfd810507d4b2c9ec0428 (diff)
downloadvyos-1x-dadb09fd14046720e7898c3cbad8c5def408db9d.tar.gz
vyos-1x-dadb09fd14046720e7898c3cbad8c5def408db9d.zip
broadcast-relay: T2712: migrate to get_config_dict()
Add additional verify() stage to check that the relaying interface actually exists on the system.
Diffstat (limited to 'data/templates/bcast-relay')
-rw-r--r--data/templates/bcast-relay/udp-broadcast-relay.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/bcast-relay/udp-broadcast-relay.tmpl b/data/templates/bcast-relay/udp-broadcast-relay.tmpl
index 3d8c3fe94..d0c7d8bf9 100644
--- a/data/templates/bcast-relay/udp-broadcast-relay.tmpl
+++ b/data/templates/bcast-relay/udp-broadcast-relay.tmpl
@@ -4,4 +4,4 @@
{%- if description %}
# Comment: {{ description }}
{% endif %}
-DAEMON_ARGS="{% if address %}-s {{ address }} {% endif %}{{ id }} {{ port }} {{ interfaces | join(' ') }}"
+DAEMON_ARGS="{{ '-s ' + address if address is defined }} {{ instance }} {{ port }} {{ interface | join(' ') }}"