diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-09-15 15:32:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 15:32:31 +0100 |
commit | be892a01be36df2d0530654f2d07707d2d402508 (patch) | |
tree | f43d804f5fc5658b34f05e5f10d58c4153f8217f /src/op_mode | |
parent | 7f006dbfb5f3554dc6c91afd2420d4934aa1d79d (diff) | |
parent | 8c6a57124af37ba410dd01797e9242b3a79f171a (diff) | |
download | vyos-1x-be892a01be36df2d0530654f2d07707d2d402508.tar.gz vyos-1x-be892a01be36df2d0530654f2d07707d2d402508.zip |
Merge pull request #4057 from natali-rs1985/T6682-current
op-mode: T6682: Fix for show vpn ike sa peer that always shows all SAs
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/vpn_ike_sa.py | 2 |
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: |