Skip to content

Commit 8aa626a

Browse files
authored
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)
2 parents bc249af + a9502ba commit 8aa626a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/op_mode/vpn_ike_sa.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def ike_sa(peer, nat):
3838
peers = []
3939
for conn in sas:
4040
for name, sa in conn.items():
41+
if peer and s(sa['remote-host']) != peer:
42+
continue
4143
if name.startswith('peer_') and name in peers:
4244
continue
4345
if nat and 'nat-local' not in sa:

0 commit comments

Comments
 (0)