From 1e8ebed152f75becae61b7ab2be4e527f409740a Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Mon, 21 Nov 2022 10:48:58 +0000 Subject: T4812: Add op-mode show vpn ipsec connections Add new op-mode command to show all configured VPN connections show vpn ipsec connections --- templates/show/vpn/ipsec/connections/node.def | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 templates/show/vpn/ipsec/connections/node.def diff --git a/templates/show/vpn/ipsec/connections/node.def b/templates/show/vpn/ipsec/connections/node.def new file mode 100644 index 0000000..f56ac60 --- /dev/null +++ b/templates/show/vpn/ipsec/connections/node.def @@ -0,0 +1,6 @@ +help: Show VPN connections +run: if pgrep charon >&/dev/null; then + sudo ${vyos_op_scripts_dir}/show_ipsec_connections.py + else + echo -e "IPSec Process NOT Running\n" + fi -- cgit v1.2.3