summaryrefslogtreecommitdiff
path: root/data/templates/system/curlrc.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 19:53:25 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 19:53:25 +0200
commit59290c857237912dc5cc67733622e2604f1ff30a (patch)
tree96be7d3316a715fc78cd153ebfded3f1cca9b3ca /data/templates/system/curlrc.j2
parent8abb6c0a74730c3dd675148e9eacbd458f0addcb (diff)
downloadvyos-1x-59290c857237912dc5cc67733622e2604f1ff30a.tar.gz
vyos-1x-59290c857237912dc5cc67733622e2604f1ff30a.zip
system-options: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/system/curlrc.j2')
-rw-r--r--data/templates/system/curlrc.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/system/curlrc.j2 b/data/templates/system/curlrc.j2
new file mode 100644
index 000000000..be4efe8ba
--- /dev/null
+++ b/data/templates/system/curlrc.j2
@@ -0,0 +1,6 @@
+{% if http_client.source_interface is vyos_defined %}
+--interface "{{ http_client.source_interface }}"
+{% endif %}
+{% if http_client.source_address is vyos_defined %}
+--interface "{{ http_client.source_address }}"
+{% endif %}