summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-11 20:06:16 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-11 20:06:23 +0200
commitbffd2687fa5594dac53a0c7047adc6ff1b16bd75 (patch)
treedd7f2fcd29f391a99b6a71a9d04b6d007bdfe9c1 /src
parent12bc0e667d66070fa8ad84781bdedca46c571e9e (diff)
downloadvyos-1x-bffd2687fa5594dac53a0c7047adc6ff1b16bd75.tar.gz
vyos-1x-bffd2687fa5594dac53a0c7047adc6ff1b16bd75.zip
ipsec: T2816: fix NameError
Commit a5cd877a0a ("ipsec: T2816: Migrate ipsec-settings.xml.in and charon.conf to vpn_ipsec.py") unfortunately removed the dictionary definition for "data" which is required when running the l2tp handler script.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/ipsec-settings.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf_mode/ipsec-settings.py b/src/conf_mode/ipsec-settings.py
index a373f821f..1951bdf6e 100755
--- a/src/conf_mode/ipsec-settings.py
+++ b/src/conf_mode/ipsec-settings.py
@@ -46,6 +46,7 @@ def get_config(config=None):
else:
config = Config()
+ data = {}
if config.exists("vpn ipsec ipsec-interfaces interface"):
data["ipsec_interfaces"] = config.return_values("vpn ipsec ipsec-interfaces interface")