From 5a1a4bb5ac2de027ced721bdf82021f5424e0bee Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 10 Apr 2020 18:44:53 +0200 Subject: vpn: l2tp: T2264: introduce common config base --- src/conf_mode/vpn_l2tp.py | 6 ++++-- 1 file 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', -- cgit v1.2.3