diff options
author | Christian Breunig <christian@breunig.cc> | 2023-07-14 20:47:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-14 20:47:23 +0200 |
commit | 0a248d50560772d84e32fe696b569087bd8586d4 (patch) | |
tree | d2f36a55795ff20ede6fa4c05edd8ef9875945b4 /src/op_mode/vpn_ike_sa.py | |
parent | 1ac0dab20647895408d88b4506f7307bf4033224 (diff) | |
parent | d6b8a8b2fd5cd2b8c9419492f1e33b9157a3ffd4 (diff) | |
download | vyos-1x-0a248d50560772d84e32fe696b569087bd8586d4.tar.gz vyos-1x-0a248d50560772d84e32fe696b569087bd8586d4.zip |
Merge pull request #2090 from srividya0208/T5355
T5355:IPSec:op cmd:"sh vpn ike status" not working
Diffstat (limited to 'src/op_mode/vpn_ike_sa.py')
-rwxr-xr-x | src/op_mode/vpn_ike_sa.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/op_mode/vpn_ike_sa.py b/src/op_mode/vpn_ike_sa.py index 4b44c5c15..240d0790c 100755 --- a/src/op_mode/vpn_ike_sa.py +++ b/src/op_mode/vpn_ike_sa.py @@ -39,8 +39,6 @@ def ike_sa(peer, nat): peers = [] for conn in sas: for name, sa in conn.items(): - if peer and not name.startswith('peer_' + peer): - continue if name.startswith('peer_') and name in peers: continue if nat and 'nat-local' not in sa: @@ -70,7 +68,7 @@ if __name__ == '__main__': args = parser.parse_args() - if not process_named_running('charon'): + if not process_named_running('charon-systemd'): print("IPsec Process NOT Running") sys.exit(0) |