Utilizing vrf I wish to synchronize towards a ntp-server available on internet (normally one would most likely use something available on your mgmt-network instead).
By using this configuration:
ntp {
interface eth1
server 194.58.200.20 {
prefer
}
vrf INTERNET
}the output of "show ntp" fails with following error:
506 Cannot talk to daemon
Workaround is to switch context to vrf INTERNET and rerun the command, like so:
force vrf INTERNET show ntp exit
IMHO this shouldnt be needed.
"show ntp" should be able to be runned from regular vyos op-mode and if needed the output should inform which vrf the ntp service operates under.
Something like this:
vyos@vyos:~$ show ntp
.- Number of sample points in measurement set.
/ .- Number of residual runs with same sign.
| / .- Length of measurement set (time).
| | / .- Est. clock freq error (ppm).
| | | / .- Est. error in freq.
| | | | / .- Est. offset.
| | | | | | On the -.
| | | | | | samples. \
| | | | | | |
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
ntp.netnod.se 9 4 330 +0.002 0.441 +84ns 24us
==============================================================================
VRF: INTERNET
==============================================================================
vyos@vyos:~$If no vrf is configured for "set service ntp" then the above output should read "VRF: Default".