From 01bdf2dfdb09bf9dd7ca4e7b49def302b2cd7c29 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 1 May 2022 20:42:45 +0200 Subject: openconnect: T4353: fix Jinja2 linting errors --- data/templates/ocserv/radius_conf.j2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 data/templates/ocserv/radius_conf.j2 (limited to 'data/templates/ocserv/radius_conf.j2') diff --git a/data/templates/ocserv/radius_conf.j2 b/data/templates/ocserv/radius_conf.j2 new file mode 100644 index 000000000..b6612fee5 --- /dev/null +++ b/data/templates/ocserv/radius_conf.j2 @@ -0,0 +1,22 @@ +### generated by vpn_openconnect.py ### +nas-identifier VyOS +{% for srv in server %} +{% if not "disable" in server[srv] %} +{% if "port" in server[srv] %} +authserver {{ srv }}:{{ server[srv]["port"] }} +{% else %} +authserver {{ srv }} +{% endif %} +{% endif %} +{% endfor %} +radius_timeout {{ timeout }} +{% if source_address %} +bindaddr {{ source_address }} +{% else %} +bindaddr * +{% endif %} +servers /run/ocserv/radius_servers +dictionary /etc/radcli/dictionary +default_realm +radius_retries 3 +# \ No newline at end of file -- cgit v1.2.3