Re: [chrony-dev] New online/offline command |
[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]
On Wed, May 23, 2018 at 04:06:31PM +0200, Christian Ehrhardt wrote:
> First of all I'll like the simplification - so thanks for working on this.
> Is the expected usage then an unconditional call (no ip's or such) and
> chrony will sort out those that apply
Yes. There should be no need to work with individual addresses (e.g.
parse the output of the "sources" command).
> offline [address], offline [masked-address/masked-bits], offline
> [mask/masked-address], unreachable
> online [address], online [masked-address/masked-bits], online
> [mask/masked-address], reachable
>
> Would that match how you had in mind they'd work?
I was thinking about a single command doing both "offline unreachable"
and "online reachable" at the same time. Would it be useful to have
two separate commands instead?
The term (un)reachable might be slightly confusing here, because it
already has some meaning in NTP (a source which responded at least
once to the last 8 requests).
Also, we should be careful with extending the syntax. If someone used
the command to take online/offline a server named "reachable", the new
command would do something else than before. The keyword would need to
include a character which is not valid in hostnames.
--
Miroslav Lichvar
--
To unsubscribe email chrony-dev-request@chrony.tuxfamily.org with "unsubscribe" in the subject.
For help email chrony-dev-request@chrony.tuxfamily.org with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxx.org .
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |