summaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorkrox2 <49796247+krox2@users.noreply.github.com>2021-08-26 13:22:34 +0100
committerGitHub <noreply@github.com>2021-08-26 13:22:34 +0100
commitff04854628e7530c33877665255b15750f413541 (patch)
treef2ac37c6e2f1ee47620391121d01bd47a00df7b0 /src/etc
parent67193598ee650e97a761b6a629a658a5191c04ce (diff)
downloadvyos-1x-ff04854628e7530c33877665255b15750f413541.tar.gz
vyos-1x-ff04854628e7530c33877665255b15750f413541.zip
ipsec: T3780: shutting down vti when tunnel is down
Diffstat (limited to 'src/etc')
-rwxr-xr-xsrc/etc/ipsec.d/vti-up-down2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/ipsec.d/vti-up-down b/src/etc/ipsec.d/vti-up-down
index 281c9bf2b..011013a2e 100755
--- a/src/etc/ipsec.d/vti-up-down
+++ b/src/etc/ipsec.d/vti-up-down
@@ -55,7 +55,7 @@ if __name__ == '__main__':
syslog(f'Interface {interface} not found')
sys.exit(0)
- vti_link_up = (vti_link['operstate'] == 'UP' if 'operstate' in vti_link else False)
+ vti_link_up = (vti_link['operstate'] != 'DOWN' if 'operstate' in vti_link else False)
config = ConfigTreeQuery()
vti_dict = config.get_config_dict(['interfaces', 'vti', interface],