diff options
author | Christian Breunig <christian@breunig.cc> | 2023-07-26 13:48:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 13:48:51 +0200 |
commit | 6a1a687f8b8f4c60b6f3f124471f47663a737775 (patch) | |
tree | 00ff97b0b4254f56f217dbf742f3b9ff72925a6e /src/op_mode/show_ntp.sh | |
parent | 688755a988e233e221bf920e391e35d5ddc9cb56 (diff) | |
parent | b3eaa3c11a3754eed11602286baf10320af3b48e (diff) | |
download | vyos-1x-6a1a687f8b8f4c60b6f3f124471f47663a737775.tar.gz vyos-1x-6a1a687f8b8f4c60b6f3f124471f47663a737775.zip |
Merge pull request #2112 from Apachez-/T5399
T5399: VRF-support for show ntp
Diffstat (limited to 'src/op_mode/show_ntp.sh')
-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}" |