summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-02-22 01:04:31 +0700
committerGitHub <noreply@github.com>2019-02-22 01:04:31 +0700
commit37008d319e4d05df394cafb2ad0e663194f14c16 (patch)
treebde91a9e0941bb1b5518d5eecb063bbf29e52c0c
parentc815cfe3e075d9ff118813e67ad36dded31213af (diff)
parentde59b9aeef4e89788d260007830c5ea2987b519f (diff)
downloadvyos-1x-37008d319e4d05df394cafb2ad0e663194f14c16.tar.gz
vyos-1x-37008d319e4d05df394cafb2ad0e663194f14c16.zip
Merge pull request #65 from daniel-pro/T1256-dp-patch-1
T1256: Execute "show ipsec vpn ipsec sa" returns incorrect results
-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 bad4f33f0..d1385f959 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 re.search(r'no match|CONNECTING', status):
+ if not re.search(r'ESTABLISHED', status):
status_line = [conn, "down", None, None, None, None, None]
else:
try: