summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-30 22:21:23 +0200
committerGitHub <noreply@github.com>2021-04-30 22:21:23 +0200
commitbd5e0160013018c73e65f3c44d6a7f31faf4f575 (patch)
tree8c0e8eed5d8ace138d4cf830f6c41a5aecc4714b
parentaca3254d96d01cc37c9e15e02e500a36f3708959 (diff)
parent27d615c0b286c55260f36b4ad84d754f30e965d9 (diff)
downloadvyos-1x-bd5e0160013018c73e65f3c44d6a7f31faf4f575.tar.gz
vyos-1x-bd5e0160013018c73e65f3c44d6a7f31faf4f575.zip
Merge pull request #824 from sever-sever/T3333-crux
ipsec: T3333: Fix status for SA state op-mode
-rwxr-xr-xsrc/op_mode/show_ipsec_sa.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/show_ipsec_sa.py b/src/op_mode/show_ipsec_sa.py
index d1385f959..4e65daf1e 100755
--- a/src/op_mode/show_ipsec_sa.py
+++ b/src/op_mode/show_ipsec_sa.py
@@ -67,7 +67,7 @@ status_data = []
for conn in connections:
status = subprocess.check_output("ipsec statusall {0}".format(conn), shell=True).decode()
- if not re.search(r'ESTABLISHED', status):
+ if not re.search(r'(:\s+ESTABLISHED).*(:\s+INSTALLED)', status, re.S):
status_line = [conn, "down", None, None, None, None, None]
else:
try: