diff options
author | krox2 <49796247+krox2@users.noreply.github.com> | 2021-08-26 13:22:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 13:22:34 +0100 |
commit | ff04854628e7530c33877665255b15750f413541 (patch) | |
tree | f2ac37c6e2f1ee47620391121d01bd47a00df7b0 | |
parent | 67193598ee650e97a761b6a629a658a5191c04ce (diff) | |
download | vyos-1x-ff04854628e7530c33877665255b15750f413541.tar.gz vyos-1x-ff04854628e7530c33877665255b15750f413541.zip |
ipsec: T3780: shutting down vti when tunnel is down
-rwxr-xr-x | src/etc/ipsec.d/vti-up-down | 2 |
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], |