summaryrefslogtreecommitdiff
path: root/src/conf_mode/vpn_l2tp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-10 18:44:53 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-11 11:25:13 +0200
commit5a1a4bb5ac2de027ced721bdf82021f5424e0bee (patch)
treebe6c22a0c16b9d9595631b42a070d49b91b96283 /src/conf_mode/vpn_l2tp.py
parent87151df4aabc6d131d341837327dac29afd492ed (diff)
downloadvyos-1x-5a1a4bb5ac2de027ced721bdf82021f5424e0bee.tar.gz
vyos-1x-5a1a4bb5ac2de027ced721bdf82021f5424e0bee.zip
vpn: l2tp: T2264: introduce common config base
Diffstat (limited to 'src/conf_mode/vpn_l2tp.py')
-rwxr-xr-xsrc/conf_mode/vpn_l2tp.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conf_mode/vpn_l2tp.py b/src/conf_mode/vpn_l2tp.py
index 5a68faa5d..cb4e44443 100755
--- a/src/conf_mode/vpn_l2tp.py
+++ b/src/conf_mode/vpn_l2tp.py
@@ -73,10 +73,12 @@ def _accel_cmd(command):
def get_config():
c = Config()
- if not c.exists('vpn l2tp remote-access '):
+ base = ['vpn', 'l2tp' 'remote-access']
+ if not c.exists(base):
return None
- c.set_level('vpn l2tp remote-access')
+ c.set_level(base)
+
config_data = {
'authentication': {
'mode': 'local',