Skip to content

Commit

Permalink
op-mode: T6682: Fix for show vpn ike sa peer always shows all SAs
Browse files Browse the repository at this point in the history
(cherry picked from commit 8c6a571)
  • Loading branch information
natali-rs1985 authored and mergify[bot] committed Sep 15, 2024
1 parent bc249af commit a9502ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/op_mode/vpn_ike_sa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a9502ba

Please sign in to comment.