summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-17 12:13:07 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-17 12:13:07 +0200
commitfd339a3e45efea527e599fb430ccf538103b2369 (patch)
tree0831f8696ec1ae8f7cc6871443b16319b2b45a27
parent7f41c331f9023972097ad8e5b375fdf82843e121 (diff)
downloadvyos-1x-fd339a3e45efea527e599fb430ccf538103b2369.tar.gz
vyos-1x-fd339a3e45efea527e599fb430ccf538103b2369.zip
openvpn: T1548: add description to generated config file
-rwxr-xr-xsrc/conf_mode/interface-openvpn.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/interface-openvpn.py b/src/conf_mode/interface-openvpn.py
index 67700222c..1988dcdb1 100755
--- a/src/conf_mode/interface-openvpn.py
+++ b/src/conf_mode/interface-openvpn.py
@@ -44,6 +44,10 @@ config_tmpl = """
# See https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
# for individual keyword definition
+{% if description %}
+# {{ description }}
+{% endif %}
+
verb 3
status /opt/vyatta/etc/openvpn/status/{{ intf }}.status 30
writepid /var/run/openvpn/{{ intf }}.pid