diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-08-17 18:03:51 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-08-17 18:03:51 +0200 |
commit | 9597c6e9a1ed83cb6cca001ccc08ee743cce9d4c (patch) | |
tree | e8e1a23184ea1e530337e17696771b6a1b38331b | |
parent | 26213a792bf5842d30786dfc339df4a622f01181 (diff) | |
download | vyos-1x-9597c6e9a1ed83cb6cca001ccc08ee743cce9d4c.tar.gz vyos-1x-9597c6e9a1ed83cb6cca001ccc08ee743cce9d4c.zip |
openvpn: T1548: don't generate config if instance is disabled
-rwxr-xr-x | src/conf_mode/interface-openvpn.py | 3 |
1 files changed, 1 insertions, 2 deletions
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'] |