NtpConfig

class pyniryo_nate.models.device.NtpConfig(enabled: bool, synchronized: bool, servers: list[str], pools: list[str], last_sync: datetime)[source]

Bases: object

Represents the device’s NTP (Network Time Protocol) configuration.

Parameters:
  • enabled (bool) – Whether the device is configured to synchronize with an NTP server.

  • synchronized (bool) – Whether the device’s clock is currently synchronized with an NTP server.

  • servers (list[str]) – The list of configured NTP servers.

  • pools (list[str]) – The list of configured NTP pools.

  • last_sync (datetime) – The last time the device synchronized its clock.

Attributes

Methods

enabled: bool
synchronized: bool
servers: list[str]
pools: list[str]
last_sync: datetime
classmethod from_transport_model(model: NTPConfig) → NtpConfig[source]
Parameters:

model (NTPConfig)

Return type:

NtpConfig