Skip to content

v0.6.7

Choose a tag to compare

@fastrevmd-lab fastrevmd-lab released this 04 Nov 17:12
· 42 commits to main since this release
v0.6.7
6f01ff3

Added

  • unifi_cancel_change_set (#145). A change set that failed validation
    stayed planned and blocked its token from creating another for the
    whole approval window, with no way out. The owner or approver can now
    cancel a planned, approved or expired set; the record is kept as
    cancelled, and the cancel is logged as an audit event. A set that
    started applying cannot be cancelled: a failed apply may have left
    writes on the controller, and cancelled would hide them. It is a write
    tool, so a --tools "*" token does not get it: add it by name. This
    brings tool_count to 23 and write_tool_count to 12.

  • port_forward and static_route can now be staged for create, update, and
    delete through unifi_stage_change (#143). They were read-only kinds
    (MEC-509). Apply, rollback, and verify already addressed
    rest/portforward and rest/routing generically, so only the
    writable-field allowlist changed. firewall_rule stays read-only.
    Verified live on 2026-11-03: a create, update and delete of each kind
    went through stage, validate, approve and apply against a real
    controller, and each verified.

Changed

  • unifi_list_resources and unifi_get_resource for network now return
    the fields needed to plan a network move or copy one before a
    delete-and-recreate: firewall_zone_id, domain_name, vlan_enabled,
    networkgroup, enabled, igmp_snooping, internet_access_enabled,
    network_isolation_enabled, dhcpd_dns_enabled, dhcpd_dns_1 to
    dhcpd_dns_4, dhcpd_leasetime, attr_no_delete and wan_type.
    dhcp_reservation now returns network_id and use_fixedip. Credential
    fields (the x_* family, wireguard_private_key) are still withheld.
    All of these except attr_no_delete and wan_type can also be staged,
    so a network read back can be recreated as it was and a reservation can be
    moved to it with network_id. Verified live against UniFi Network 10.5.67.
    The controller refuses moving a network with network_isolation_enabled
    into the guest Hotspot zone (NetworkIsolationAppliedOnNonCorporateNetwork).

Fixed

  • Staging a dhcp_reservation delete is now refused (#143). A reservation is
    not its own controller record but the client's user record with
    use_fixedip: true, so the delete sent DELETE rest/user/{id} and forgot the
    whole client (name, note, group, local DNS), and its rollback could not
    restore it. To remove only the reservation, stage an update with
    {"use_fixedip": false}. A change set already holding such a delete is
    refused at validate and apply.

  • Staging a firewall_zone update no longer fails with failed to capture pre-image for firewall_zone <id> (#143). The controller answers a per-id
    GET firewall/zone/{id} with 405 Method Not Allowed, so the pre-image, the
    drift check, the update merge, post-apply verification and
    unifi_get_resource now read the zone list and pick the zone by _id. A v2
    read that returns an array also selects by _id instead of taking its first
    element. Not yet checked against a live controller: whether a zone PUT or
    DELETE by id is accepted.

  • An applied update is now verified against every top-level scalar field it
    staged, not only name (#143). An update that changed, say, fwd_port
    and did not land was reported applied; it is now applied_unverified
    and names the fields that did not read back. Nested objects and arrays are
    still not compared.