summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-17 18:03:51 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-17 18:03:51 +0200
commit9597c6e9a1ed83cb6cca001ccc08ee743cce9d4c (patch)
treee8e1a23184ea1e530337e17696771b6a1b38331b /src
parent26213a792bf5842d30786dfc339df4a622f01181 (diff)
downloadvyos-1x-9597c6e9a1ed83cb6cca001ccc08ee743cce9d4c.tar.gz
vyos-1x-9597c6e9a1ed83cb6cca001ccc08ee743cce9d4c.zip
openvpn: T1548: don't generate config if instance is disabled
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interface-openvpn.py3
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']