summaryrefslogtreecommitdiff
path: root/data/templates/tftp-server/default.tmpl
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-11-22 20:55:06 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-11-23 08:12:41 +0000
commit6f0249e39164b9d59de6550337e2901e5ed9ebf1 (patch)
tree5c50249d6411e626eae613c0bbe8d9ea3ba6b91f /data/templates/tftp-server/default.tmpl
parent82ea3b4f3c12023ce17f1062785b6238f457673d (diff)
downloadvyos-1x-6f0249e39164b9d59de6550337e2901e5ed9ebf1.tar.gz
vyos-1x-6f0249e39164b9d59de6550337e2901e5ed9ebf1.zip
tftp: T4012: Add TFTP VRF support
Diffstat (limited to 'data/templates/tftp-server/default.tmpl')
-rw-r--r--data/templates/tftp-server/default.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/tftp-server/default.tmpl b/data/templates/tftp-server/default.tmpl
index 6b2d6a903..a7edf60ad 100644
--- a/data/templates/tftp-server/default.tmpl
+++ b/data/templates/tftp-server/default.tmpl
@@ -1,2 +1,7 @@
### 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 %}
+VRF_ARGS="ip vrf exec {{ vrf }}"
+{% else %}
+VRF_ARGS=""
+{% endif %}