• napalm-linux 0.18.0
    driver / types (push) Successful in 1m5s
    driver / standard (push) Successful in 16s
    driver / lint (push) Successful in 14s
    driver / test (3.12) (push) Successful in 59s
    driver / test (3.13) (push) Successful in 56s
    driver / lowest (push) Successful in 41s
    driver / build (push) Successful in 32s
    driver / security (push) Successful in 1m19s
    driver / publish (push) Successful in 27s
    CI / driver (push) Successful in 4m35s
    Stable

    christianmanivong released this 2026-11-26 11:48:20 +00:00 | 0 commits to main since this release

    Added

    • An active-only Zabbix agent closes the port netOrk opened for it on an earlier passive run
      (_revoke_zabbix_agent_sources, napalm-device-types ZabbixAgentMixin,
      NetOrk/netork#2693). firewalld, ufw and iptables do not say who wrote a rule, so every rule
      the firewall step adds -- the Zabbix agent's tcp/listen_port, SNMP's udp/161 -- is now
      recorded in /var/lib/netork/opened-ports (napalm-device-types opened_ports), and only
      when the firewall did not have it before: an identical rule the operator wrote is never
      recorded. Closing removes exactly the agent's recorded rules, whatever port they opened,
      from the zone and configuration recorded (firewalld), and rewrites the record. It reads the
      record only when it is root's alone, and reports the rules for the port it left in place:
      the operator's, or ones opened before this version recorded them.
    • A native Zabbix agent (napalm-device-types ZabbixAgentMixin, NetOrk/netork#2571), for a
      host without a container engine: configure_zabbix_agent(settings) installs
      zabbix-agent from the host's packages, and where they have none and the caller names
      the server's release line, from Zabbix's repository (zabbix-release for Debian, Ubuntu,
      Raspberry Pi OS and the RHEL family). It writes the caller's values into
      /etc/zabbix/zabbix_agentd.conf (the old file stays as .bak), opens tcp/listen_port
      for the allowed sources in firewalld, ufw or iptables, enables and restarts the service.
    • On an rpm host each package names the source rpm it was built from, as source_rpm
      (perf → kernel); absent where rpm names none (gpg-pubkey). Red Hat lists perf,
      python3-perf and bpftool in every kernel CVE, and the source is what tells them apart
      from user space (NetOrk/netork#2394). Not dpkg's source_package: netOrk reads that as
      the name a distribution files its verdicts under, and Oracle's and Red Hat's name the
      binary.
    • get_installed_advisory_cves() through napalm-device-types' UpdateMixin (4.37.0): the
      CVEs a dnf host's installed security advisories close, per package, read as root from
      the cache. netOrk reads it where its knowledge base holds no records of the host's
      release (NetOrk/netork#2394). dnf only; other package managers raise
      NotImplementedError.

    Changed

    • Needs napalm-device-types 4.40.0 or later (ZabbixAgentMixin).
    • The SNMP agent's firewall step is the shared _allow_sources(allowed, port, proto); the
      rules it writes for udp/161 are the same.
    • load_replace_candidate is None instead of a method that raises
      NotImplementedError, so a caller that asks whether the driver can replace a
      configuration gets no. netOrk offered a config restore for these devices that
      could only fail (NetOrk/netork#2503).
    • On an rpm host a package's version carries its epoch where it has one
      (1:6.2.0-13.el9), as on a dpkg host. Oracle's and Red Hat's fixes name it, and without
      it an epoch-1 fix read as newer than every installed build (NetOrk/netork#2394).

    Fixed

    • open_stream(privileged=True) with a sudo password asks sudo first whether it wants it
      (sudo -n sh -c true). A sudo that does not prompt (NOPASSWD, a cached timestamp) used to
      get the password on stdin anyway, where it went to the command as the first bytes of the
      stream: into the Podman API, over sudo podman system dial-stdio (NetOrk/netork#818).
      Such a sudo now gets the command through sudo -n, and only one that asks gets the
      password.

    Added

    • get_time_sync() and configure_time_sync() through napalm-device-types'
      PosixTimeSyncMixin (4.35.0): the host's NTP servers in its client's order, its time zone,
      whether the clock is synchronised and which client keeps it (chrony, systemd-timesyncd,
      ntpd, OpenNTPD), read in one round trip as the login user. The zone is set with
      timedatectl set-timezone; chrony's servers go to /etc/chrony/sources.d/netork.sources
      (else a confdir or an included file) with every other source commented out,
      systemd-timesyncd's to /etc/systemd/timesyncd.conf.d/netork.conf. The host ends up with
      exactly the servers given (NetOrk/netork#2361). OpenMediaVault and QNAP inherit it.
    • get_running_backups() through napalm-device-types' RunningBackupsMixin (4.34.0): the
      host's own backups a restart would abort -- a process of restic, resticprofile, autorestic,
      borg, borgmatic, duplicity, duply, rsnapshot, rdiff-backup, proxmox-backup-client, kopia or
      btrbk doing a backup, prune, check or copy (not a mount, a restore or a listing), with the
      systemd service it runs in as its job (a timer's service; none for a cron or a login
      session), its process id and when it started. One round trip as the login user; a ps
      without etimes fails the reading (NetOrk/netork#2318). OpenMediaVault and QNAP inherit it.
    • get_log_sources() through napalm-device-types' LogSourcesMixin (4.30.0): the units
      journald holds entries for and the log files running processes hold open, with the service
      or container writing each, as root, and without root what the login user may see
      (NetOrk/netork#2049). OpenMediaVault and QNAP inherit it.
    • A deleted key can take the password with it (NetOrk/netork#2033): through
      napalm-device-types' remove_local_account_keys(..., clear_password=True) the keys go
      as the person, the password goes (usermod -p '*'), and so do the sudo rule and the
      admin groups. The account stays open and logs in with its other keys only.

    Changed

    • Needs napalm-device-types 4.35.0.

    Fixed

    • configure_snmp_agent() opens udp/161 on a host running firewalld (Oracle Linux, RHEL,
      Fedora): a rich rule per allowed source in the default zone and every active zone, at
      runtime and permanently, without a reload. It used to insert an iptables rule there,
      which firewalld's own reject overrides, so the fix reported the port open while SNMP
      stayed blocked (#77).
    Downloads