diff options
Diffstat (limited to 'src/op_mode/vpn_ike_sa.py')
-rwxr-xr-x | src/op_mode/vpn_ike_sa.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/op_mode/vpn_ike_sa.py b/src/op_mode/vpn_ike_sa.py index 622498a7f..00f34564a 100755 --- a/src/op_mode/vpn_ike_sa.py +++ b/src/op_mode/vpn_ike_sa.py @@ -16,8 +16,11 @@ import argparse import re +import sys import vici +from vyos.util import process_named_running + ike_sa_peer_prefix = """\ Peer ID / IP Local ID / IP ------------ -------------""" @@ -67,4 +70,8 @@ if __name__ == '__main__': args = parser.parse_args() - ike_sa(args.peer, args.nat)
\ No newline at end of file + if not process_named_running('charon'): + print("IPSec Process NOT Running") + sys.exit(0) + + ike_sa(args.peer, args.nat) |