summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-26 15:08:11 +0200
committerGitHub <noreply@github.com>2021-08-26 15:08:11 +0200
commitb1411baf3bd32d149cb60f5a05c862e81054471a (patch)
treef2ac37c6e2f1ee47620391121d01bd47a00df7b0
parent67193598ee650e97a761b6a629a658a5191c04ce (diff)
parentff04854628e7530c33877665255b15750f413541 (diff)
downloadvyos-1x-b1411baf3bd32d149cb60f5a05c862e81054471a.tar.gz
vyos-1x-b1411baf3bd32d149cb60f5a05c862e81054471a.zip
Merge pull request #979 from krox2/current
ipsec: T3780: shutting down vti when tunnel is down
-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],