summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Pro <43214013+daniel-pro@users.noreply.github.com>2019-02-21 15:13:17 +0100
committerDaniil Baturin <daniil@baturin.org>2019-02-21 22:38:23 +0100
commit2f67ed3a142f74be43b0fd7e6cf8e7717b2c1b06 (patch)
treeb6a961705dd6fd8fc144e87b55dee3fa1e9dfb90 /src
parent759ac01e68b23b549ba64506c816331e5d4446fd (diff)
downloadvyos-1x-2f67ed3a142f74be43b0fd7e6cf8e7717b2c1b06.tar.gz
vyos-1x-2f67ed3a142f74be43b0fd7e6cf8e7717b2c1b06.zip
T1256: Execute "show ipsec vpn ipsec sa" returns incorrect results
Not sure it's a normal case scenario, the one highlighted in T1256. To managed it I changed the "if" logic.
Diffstat (limited to 'src')
-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: