From 6668032caf0a4f37ed634323f00c07df7619ab84 Mon Sep 17 00:00:00 2001 From: Daniel <43214013+daniel-pro@users.noreply.github.com> Date: Tue, 18 Dec 2018 15:10:24 +0100 Subject: Update show_ipsec_sa.py --- src/op_mode/show_ipsec_sa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/op_mode/show_ipsec_sa.py b/src/op_mode/show_ipsec_sa.py index 9e1d6ce4d..8240c4fd3 100755 --- a/src/op_mode/show_ipsec_sa.py +++ b/src/op_mode/show_ipsec_sa.py @@ -32,7 +32,7 @@ status_data = [] for conn in connections: status = subprocess.check_output("ipsec statusall {0}".format(conn), shell=True).decode() - if re.search(r'no match', status): + if re.search(r'no match|CONNECTING', status): status_line = [conn, "down", None, None, None, None, None] else: try: -- cgit v1.2.3