From ff04854628e7530c33877665255b15750f413541 Mon Sep 17 00:00:00 2001 From: krox2 <49796247+krox2@users.noreply.github.com> Date: Thu, 26 Aug 2021 13:22:34 +0100 Subject: ipsec: T3780: shutting down vti when tunnel is down --- src/etc/ipsec.d/vti-up-down | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/etc') 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], -- cgit v1.2.3