Changelog

v2.0.0 - 2026-11-16

  • Breaking: a device is identified by its new name attribute, the agent of its resources: agent_name is removed, host defaults to the name, and OnuPorts, OnuPortBridge and the discoveries require their device. The first deployment after the upgrade redeploys all the resources once

  • Breaking: remove the username_env_var and password_env_var attributes of the device, username and password are required and can be references, which are only resolved when a session is opened

  • Breaking: remove the Bridge resource (use OnuPortBridge), the config attribute of OnuPorts (it was never applied) and the std::AgentConfig resources

  • Breaking: a discovery runs on the agent of its device, sharing its ssh session, instead of on an agent named after the discovery. Its new target_agent_name attribute is the agent the discovered resources are reported on

  • Breaking: the commands of the driver (inmanta_plugins.dzs.driver.DZSDriver) return typed models (inmanta_plugins.dzs.models) instead of dicts, for the code calling the driver directly

  • An onu is identified by its serial number or regid only: the same onu on two olt ports fails the compile instead of the export

  • Add the OnuSearch resource, which runs the given onu discoveries, then the given neighbor discoveries, to find an onu which is not on its expected port (iso9+)

  • Add the port attribute to the device, the ssh port to reach it (22 by default)

  • OnuPortBridge manages the bridge of an onu port for the traffic which is not tagged on that port: the bridges of the port with a uni vlan are ignored, and the handler fails when the port has several untagged bridges instead of picking the first one

  • regid of Onu and filter of Rule only accept printable ascii characters without whitespace (cli_word_t), they are typed as is in the cli of the device

  • Reset the id and name facts of an onu to -1 when it is deleted or not found on the olt, its bridge and ports are then handled as the ones of an onu which is not registered

  • Skip the creation of an onu whose ont the olt discovered without knowing its model yet, instead of failing it with Couldn't find <serial>, and report such onts in the onu discovery

  • A discovery only cleans up the stale discovered resources it reported itself, instead of all the ones of its type on its target agent

  • Reuse the onu inventory outputs an ssh session read for 60 seconds (INMANTA_DZS_INVENTORY_CACHE_TIME), instead of reading the inventory of the olt port again for each of its onus

  • The ssh session of a device (paramiko, scrapli is dropped) is reopened when the device dropped it, closed when a command fails, connected again when the device doesn’t show its prompt after the login, and doesn’t keep the password in memory

  • Stop cleaning up the inactive ssh sessions of the device when opening a session, it needs rights the device user doesn’t have in production

  • A command waits up to its own timeout (INMANTA_DZS_INVENTORY_TIMEOUT for onu inventory) instead of failing after 30 seconds of silence, is retried when the database of the device is locked, and runs with paging disabled

  • Fail the resource action instead of going on when the device counts more rows than the driver parsed (onu inventory, onu show), when onu delete isn’t confirmed, when onu port prints anything, or when the onu id picked for a new onu ends up registered with another serial number

  • Check the host key of the device when strict_key is true (it always failed with Authentication failed), and log a warning for each session opened without checking it

  • Log a warning when INMANTA_DZS_SESSION_IDLE_TIMEOUT is longer than the session timeout of the device or the executor retention time of the agent

  • Fix the onus with an id of 10 or more (Error clearing Onu, Error creating Onu), the lookup of a regid onu reading the config of every onu of its port, the rule group of a bridge read as -1 when it has several members, the read of a rule with a single argument, the diagnosis of an onu when its ports are discovered too, a command output holding a byte which is not valid utf-8, and the last_deploy fact updated by a dry-run of OnuPorts

  • Remove the warnings logged on every compile and on every onu show

v1.3.4 - 2026-11-09

  • Key the cached ssh session of a device on its host only, and only resolve the username and password references when opening a new session. The first deploy after the upgrade redeploys the resources holding a reference (device credentials, onu id or name) once

v1.3.3 - 2026-10-20

  • Fix the cleanup of inactive ssh sessions ignoring the incoming sessions with a two digit id (tSshIn10): it either gave up, or closed such a session while it was in use. Log the showtask output when the cleanup can’t parse it

  • Stop flooding the agent log with SyntaxWarning: invalid escape sequence on every command output the driver parses

  • Keep idle ssh sessions open for 60 seconds instead of 30 by default (INMANTA_DZS_SESSION_IDLE_TIMEOUT), and make the driver reopen a session which was idle for longer than that before using it again. See the README for how this relates to the executor retention time of the orchestrator

v1.3.2 - 2026-10-13

  • Fix discovery failing on iso8 with AttributeError: module 'inmanta.data.model' has no attribute 'DiscoveredResourceOutput'

v1.3.1 - 2026-10-12

  • Retry the initial ssh connection a few times before giving up, the device sometimes can’t service a new connection while another session is already established

  • Escape the device’s internal shell (dshell) when it silently appears right after connecting, instead of hanging or timing out

  • Evict session cache after 30 seconds of idle time. Configure it with INMANTA_DZS_SESSION_IDLE_TIMEOUT.

  • Fix the cleanup of stale discovered resources when a single one is stale, and fail the discovery when the cleanup is rejected by the server instead of silently ignoring it. The ids of the stale discovered resources are now logged

  • Fix the discovery of olts with more than 1000 discovered resources failing with HTTP 401: Unauthorized when the server has authentication enabled

  • Make the timeout of the onu inventory command configurable with INMANTA_DZS_INVENTORY_TIMEOUT (default: 180 seconds)

v1.3.0 - 2026-08-28

  • Add RuleDiscovery, OnuPortBridgeDiscovery and OnuPortsDiscovery resources, discovering respectively the Rule, OnuPortBridge and OnuPorts resources present on the device

  • Discovery resources now only clean up the discovered resources of their own type, and only those which are not present on the device anymore

  • OnuDiscovery now also reports the model of the onu device, as reported by the olt

  • Fix the parsing of the onu inventory when the olt reports some, but not all, of the measurements of an onu as error

v1.2.6 - 2026-06-22

v1.2.5 - 2026-06-17

  • Add last_deploy fact for OnuPorts

  • Add suppress_read_error attribute to OnuPorts resource

v1.2.4 - 2026-04-28

  • Add timeout for interactive command

v1.2.3 - 2026-02-16

  • Better handling of the interactive command

v1.2.2 - 2026-02-16

  • Add better logs when prompt reaction error

v1.2.1 - 2026-02-12

  • Increase read timeout

  • Fix onu discovery when there is only one onu discovered

v1.2.0 - 2026-02-11

  • Allow to use unmanaged dzs::Rule without specifying all attributes

  • Remove unused name attributes

v1.1.3 - 2026-02-06

  • Fix onu port when onu is not found

  • Add onu discovery

v1.1.2 - 2026-01-29

  • Fix paged cli command output parsing (again)

v1.1.1 - 2026-01-28

  • Fix rule show command output parsing

  • Fix paged cli command output parsing

v1.1.0 - 2026-01-27

  • Expose more facts on dzs::Onu resource

  • Add dzs::OnuPortBridge resource, with stricter current state compliance check than dzs::Bridge

  • Allow to configure agent name

  • Skip or fail dzs::OnuPorts when the status of the ports is unknown. When trying to read the status multiple times in a single deployment, space the attempts using an exponential backoff (base 2 seconds).

v1.0.8 - 2025-12-19

  • Fix potential issue with ounid reference

v1.0.7 - 2025-12-16

  • relax bridge show template

v1.0.6 - 2025-12-10

  • fix iso8 compatibility for fact checking

v1.0.5 - 2025-12-10

  • fix issue in fact checking with authentification is enabled

v1.0.4 - 2025-12-09

  • Improve onu id fact reference

  • Improve port lookup stability

  • Improve type constraints

  • Fix rule show template

  • Fix onu show template

v1.0.3 - 2025-12-04

  • Log all commands executed on devices in resource actions

  • Fix bridge deletion when onu is not provisioned

  • Improve rule reading

  • Add ssh session cleanup

v1.0.2 - 2025-10-23

  • Use fact reference from std 8.5

  • improve onu cleanup

  • use skip_if_not_found flag for regid when the resource is set be not found in the inventory

v1.0.1 - 2025-06-06

  • Avoid using std 8.5 for release

v1.0.0 - 2025-06-06

  • Remove onu_id from Onu resource

  • Fix the lookup for regid when regid is not present

v0.2.0 - 2025-05-02

  • Re-enable regid provisioning

v0.1.0 - 2025-03-10

  • Add sn base provisioning

v0.0.2 - 2024-12-18

  • Improve credentials obfuscation

v0.0.1 - 2024-11-05

  • Support for physical port

  • Support for onu, rule and bridge