Repository navigation
v0.6.7
Added
-
unifi_cancel_change_set(#145). A change set that failed validation
stayedplannedand blocked its token from creating another for the
whole approval window, with no way out. The owner or approver can now
cancel aplanned,approvedorexpiredset; the record is kept as
cancelled, and the cancel is logged as anauditevent. A set that
started applying cannot be cancelled: a failed apply may have left
writes on the controller, andcancelledwould hide them. It is a write
tool, so a--tools "*"token does not get it: add it by name. This
bringstool_countto 23 andwrite_tool_countto 12. -
port_forwardandstatic_routecan now be staged for create, update, and
delete throughunifi_stage_change(#143). They were read-only kinds
(MEC-509). Apply, rollback, and verify already addressed
rest/portforwardandrest/routinggenerically, so only the
writable-field allowlist changed.firewall_rulestays 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_resourcesandunifi_get_resourcefornetworknow 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_1to
dhcpd_dns_4,dhcpd_leasetime,attr_no_deleteandwan_type.
dhcp_reservationnow returnsnetwork_idanduse_fixedip. Credential
fields (thex_*family,wireguard_private_key) are still withheld.
All of these exceptattr_no_deleteandwan_typecan also be staged,
so a network read back can be recreated as it was and a reservation can be
moved to it withnetwork_id. Verified live against UniFi Network 10.5.67.
The controller refuses moving a network withnetwork_isolation_enabled
into the guestHotspotzone (NetworkIsolationAppliedOnNonCorporateNetwork).
Fixed
-
Staging a
dhcp_reservationdelete is now refused (#143). A reservation is
not its own controller record but the client'suserrecord with
use_fixedip: true, so the delete sentDELETE 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_zoneupdate no longer fails withfailed 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_resourcenow read the zone list and pick the zone by_id. A v2
read that returns an array also selects by_idinstead of taking its first
element. Not yet checked against a live controller: whether a zonePUTor
DELETEby id is accepted. -
An applied update is now verified against every top-level scalar field it
staged, not onlyname(#143). An update that changed, say,fwd_port
and did not land was reportedapplied; it is nowapplied_unverified
and names the fields that did not read back. Nested objects and arrays are
still not compared.