From 4dc4bbc6ce6ab4a3a531b16619b5c34816366afc Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 10 Apr 2022 20:55:21 +0200 Subject: tftp-server: T4333: migrate to new vyos_defined Jinja2 test --- data/templates/tftp-server/default.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/templates/tftp-server') diff --git a/data/templates/tftp-server/default.tmpl b/data/templates/tftp-server/default.tmpl index a7edf60ad..56784d467 100644 --- a/data/templates/tftp-server/default.tmpl +++ b/data/templates/tftp-server/default.tmpl @@ -1,6 +1,6 @@ ### Autogenerated by tftp_server.py ### -DAEMON_ARGS="--listen --user tftp --address {{ listen_address }} {{ "--create --umask 000" if allow_upload is defined }} --secure {{ directory }}" -{% if vrf is defined %} +DAEMON_ARGS="--listen --user tftp --address {{ listen_address }} {{ "--create --umask 000" if allow_upload is vyos_defined }} --secure {{ directory }}" +{% if vrf is vyos_defined %} VRF_ARGS="ip vrf exec {{ vrf }}" {% else %} VRF_ARGS="" -- cgit v1.2.3