From ebff7acdf68a47fb8812bd7fc2d369b8c719f752 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 26 Apr 2022 12:42:21 +0000 Subject: op-mode: T4395: Extend show vpn debug for IPSec Op-mode 'show vpn debug' Old Perl code 'vyatta-vpn-op.pl --op=show-vpn-debug' doesn't give us enough debug information In fact it show only 'ipsec statusall' Add python script to get all required and useful debug info --- templates/show/vpn/debug/node.def.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/show/vpn/debug/node.def.in b/templates/show/vpn/debug/node.def.in index 6fb98de..6e08421 100644 --- a/templates/show/vpn/debug/node.def.in +++ b/templates/show/vpn/debug/node.def.in @@ -3,7 +3,7 @@ run: if [ -n "$(cli-shell-api returnActiveValues \ vpn ipsec ipsec-interfaces interface)" ]; then if pgrep charon > /dev/null then - @SUDOUSRDIR@/vyatta-vpn-op.pl --op=show-vpn-debug + sudo ${vyos_op_scripts_dir}/vpn_ipsec.py --action="vpn-debug" else echo IPsec process not running fi -- cgit v1.2.3