summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-16 07:47:44 +0200
committerGitHub <noreply@github.com>2024-09-16 07:47:44 +0200
commit8aa626a19d574776b857da7c3d358f70210e733a (patch)
treea7c112afcb18f264dfb6466857466f9187da2880
parentbc249af29b435a0099fdfb63465804482d8fe996 (diff)
parenta9502ba5dfea7ece7d7c6a9b8bacad3d304b144b (diff)
downloadvyos-1x-8aa626a19d574776b857da7c3d358f70210e733a.tar.gz
vyos-1x-8aa626a19d574776b857da7c3d358f70210e733a.zip
Merge pull request #4072 from vyos/mergify/bp/circinus/pr-4057
op-mode: T6682: Fix for show vpn ike sa peer that always shows all SAs (backport #4057)
-rwxr-xr-xsrc/op_mode/vpn_ike_sa.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/op_mode/vpn_ike_sa.py b/src/op_mode/vpn_ike_sa.py
index 5e2aaae6b..9385bcd0c 100755
--- a/src/op_mode/vpn_ike_sa.py
+++ b/src/op_mode/vpn_ike_sa.py
@@ -38,6 +38,8 @@ def ike_sa(peer, nat):
peers = []
for conn in sas:
for name, sa in conn.items():
+ if peer and s(sa['remote-host']) != peer:
+ continue
if name.startswith('peer_') and name in peers:
continue
if nat and 'nat-local' not in sa: