Changelog¶
v2.0.0 - 2026-11-16¶
Breaking: a device is identified by its new
nameattribute, the agent of its resources:agent_nameis removed,hostdefaults to the name, andOnuPorts,OnuPortBridgeand the discoveries require theirdevice. The first deployment after the upgrade redeploys all the resources onceBreaking: remove the
username_env_varandpassword_env_varattributes of the device,usernameandpasswordare required and can be references, which are only resolved when a session is openedBreaking: remove the
Bridgeresource (useOnuPortBridge), theconfigattribute ofOnuPorts(it was never applied) and thestd::AgentConfigresourcesBreaking: a discovery runs on the agent of its
device, sharing its ssh session, instead of on an agent named after the discovery. Its newtarget_agent_nameattribute is the agent the discovered resources are reported onBreaking: 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 directlyAn 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
OnuSearchresource, 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
portattribute to the device, the ssh port to reach it (22 by default)OnuPortBridgemanages 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 oneregidofOnuandfilterofRuleonly accept printable ascii characters without whitespace (cli_word_t), they are typed as is in the cli of the deviceReset the
idandnamefacts of an onu to-1when 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 registeredSkip 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 discoveryA 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 inventoryoutputs 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 onusThe 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_TIMEOUTforonu inventory) instead of failing after 30 seconds of silence, is retried when the database of the device is locked, and runs with paging disabledFail the resource action instead of going on when the device counts more rows than the driver parsed (
onu inventory,onu show), whenonu deleteisn’t confirmed, whenonu portprints anything, or when the onu id picked for a new onu ends up registered with another serial numberCheck the host key of the device when
strict_keyis true (it always failed withAuthentication failed), and log a warning for each session opened without checking itLog a warning when
INMANTA_DZS_SESSION_IDLE_TIMEOUTis longer than the session timeout of the device or the executor retention time of the agentFix 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-1when 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 thelast_deployfact updated by a dry-run ofOnuPortsRemove 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
usernameandpasswordreferences 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 theshowtaskoutput when the cleanup can’t parse itStop flooding the agent log with
SyntaxWarning: invalid escape sequenceon every command output the driver parsesKeep 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: Unauthorizedwhen the server has authentication enabledMake the timeout of the
onu inventorycommand configurable with INMANTA_DZS_INVENTORY_TIMEOUT (default: 180 seconds)
v1.3.0 - 2026-08-28¶
Add
RuleDiscovery,OnuPortBridgeDiscoveryandOnuPortsDiscoveryresources, discovering respectively theRule,OnuPortBridgeandOnuPortsresources present on the deviceDiscovery resources now only clean up the discovered resources of their own type, and only those which are not present on the device anymore
OnuDiscoverynow also reports the model of the onu device, as reported by the oltFix 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_deployfact for OnuPortsAdd
suppress_read_errorattribute 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 showcommand output parsingFix 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 showtemplateFix
onu showtemplate
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