diff options
author | sever-sever <v.gletenko@vyos.io> | 2021-04-28 14:53:12 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2021-04-28 15:59:10 +0000 |
commit | 27d615c0b286c55260f36b4ad84d754f30e965d9 (patch) | |
tree | 8c0e8eed5d8ace138d4cf830f6c41a5aecc4714b /src | |
parent | aca3254d96d01cc37c9e15e02e500a36f3708959 (diff) | |
download | vyos-1x-27d615c0b286c55260f36b4ad84d754f30e965d9.tar.gz vyos-1x-27d615c0b286c55260f36b4ad84d754f30e965d9.zip |
ipsec: T3333: Fix status for SA state op-mode
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/show_ipsec_sa.py | 2 |
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: |