diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-26 15:08:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 15:08:11 +0200 |
commit | b1411baf3bd32d149cb60f5a05c862e81054471a (patch) | |
tree | f2ac37c6e2f1ee47620391121d01bd47a00df7b0 /src/etc | |
parent | 67193598ee650e97a761b6a629a658a5191c04ce (diff) | |
parent | ff04854628e7530c33877665255b15750f413541 (diff) | |
download | vyos-1x-b1411baf3bd32d149cb60f5a05c862e81054471a.tar.gz vyos-1x-b1411baf3bd32d149cb60f5a05c862e81054471a.zip |
Merge pull request #979 from krox2/current
ipsec: T3780: shutting down vti when tunnel is down
Diffstat (limited to 'src/etc')
-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], |