From 9597c6e9a1ed83cb6cca001ccc08ee743cce9d4c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 17 Aug 2019 18:03:51 +0200 Subject: openvpn: T1548: don't generate config if instance is disabled --- src/conf_mode/interface-openvpn.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/conf_mode/interface-openvpn.py b/src/conf_mode/interface-openvpn.py index 47257e9d7..7057d3369 100755 --- a/src/conf_mode/interface-openvpn.py +++ b/src/conf_mode/interface-openvpn.py @@ -796,7 +796,7 @@ def verify(openvpn): return None def generate(openvpn): - if openvpn['deleted']: + if openvpn['deleted'] or openvpn['disable']: return None interface = openvpn['intf'] @@ -844,7 +844,6 @@ def generate(openvpn): return None - def apply(openvpn): interface = openvpn['intf'] -- cgit v1.2.3