From b3eaa3c11a3754eed11602286baf10320af3b48e Mon Sep 17 00:00:00 2001 From: Apachez Date: Wed, 26 Jul 2023 11:25:42 +0200 Subject: T5399: VRF-support for show ntp --- src/op_mode/show_ntp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/op_mode/show_ntp.sh b/src/op_mode/show_ntp.sh index 85f8eda15..4b59b801e 100755 --- a/src/op_mode/show_ntp.sh +++ b/src/op_mode/show_ntp.sh @@ -18,7 +18,7 @@ if ! ps -C chronyd &>/dev/null; then fi PID=$(pgrep chronyd | head -n1) -VRF_NAME=$(ip vrf identify ) +VRF_NAME=$(ip vrf identify ${PID}) if [ ! -z ${VRF_NAME} ]; then VRF_CMD="sudo ip vrf exec ${VRF_NAME}" -- cgit v1.2.3