diff options
author | Apachez <apachez@gmail.com> | 2023-07-26 11:25:42 +0200 |
---|---|---|
committer | Apachez <apachez@gmail.com> | 2023-07-26 11:25:42 +0200 |
commit | b3eaa3c11a3754eed11602286baf10320af3b48e (patch) | |
tree | 00ff97b0b4254f56f217dbf742f3b9ff72925a6e | |
parent | 688755a988e233e221bf920e391e35d5ddc9cb56 (diff) | |
download | vyos-1x-b3eaa3c11a3754eed11602286baf10320af3b48e.tar.gz vyos-1x-b3eaa3c11a3754eed11602286baf10320af3b48e.zip |
T5399: VRF-support for show ntp
-rwxr-xr-x | src/op_mode/show_ntp.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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}" |