Skip to content

Limitations

Checked on a real server

Every feature is tested against an in-memory fake Windows server and against the real PowerShell scripts run with stub cmdlets. 0.2.0 keeps the Windows side of 0.1.x (scripts, transports, sync rules; option values are now lists) and changed the NetBox models around it. 0.2.0 passed the full lab tests (make test-lab, 31 tests, and make lab-e2e) on two Windows Server 2025 servers over WinRM HTTP with CredSSP (2026-10-29). With 0.1.0, the lab tests (see Development) ran in full against two Windows Server 2022 DHCP servers in a workgroup: every cmdlet the plugin uses, a full import, push of creates, updates and deletes, the Leases tab, and a failover relationship created, replicated and removed through a push (see Failover). Testers of the release candidates ran Windows Server 2025. What they found is fixed. The walkthroughs in Reservations and Failover were run on two Windows Server 2025 servers (2026-10-27): reservations created, changed, given an option and deleted, and a load balance relationship created and replicated through pushes over WinRM with CredSSP.

Connections checked on a real server: WinRM over HTTP with NTLM and CredSSP, WinRM over HTTPS with certificate verification and NTLM, CredSSP or Basic, and SSH with a password (failover included over CredSSP and SSH).

In a domain lab (Windows Server 2025, two DHCP servers joined to a domain, 2026-11-19, #62):

  • Kerberos over WinRM HTTPS and HTTP passed the lab tests (failover tests left out), run from a Linux container as the NetBox worker would; make lab-e2e passed over HTTPS. It cannot do failover writes, even with resource-based constrained delegation between the two servers: the DHCP calls to the partner did not use Kerberos at all (see Failover);
  • SSH with a private key (no password) passed the lab tests apart from failover writes, which need a password;
  • computer_name (-ComputerName, and the single CIM session the batched reads open for it) through a management host with CredSSP passed the lab tests and make lab-e2e, failover included. Kerberos through a management host was not run; it is the same double hop that failed between the two DHCP servers, so expect it to fail;
  • connected directly, a domain member reports its computer name, its fully qualified name and its address (through a management host, the fully qualified name and the address); a failover partner named by either spelling is matched.

With 0.5.0, in the same lab (2026-11-20): make lab-e2e passed with Kerberos for normal calls and Failover authentication: CredSSP for the failover writes (a relationship created, replicated and deleted through pushes); over SSH with a key, make test-lab passed (41), including a 100 KB script sent as a file.

With 0.6.0, in the same lab (2026-11-20): make lab-e2e passed with Kerberos over HTTPS and CredSSP for the failover writes. Over WinRM HTTP (Kerberos, with CredSSP for the failover writes, consented by both credential profiles) every step passed up to deleting the failover relationship, when the lab's nightly shutdown cut the run. The new credential profile pins (#103) are unit and NetBox tested; the lab profiles did not set them.

With 0.7.1 (Windows Server 2025, domain lab, 2026-11-22): make test-lab over WinRM passed in full (66 tests) and the SSH lab tests passed (3). Over SSH, Windows OpenSSH refused the session past MaxSessions the way the plugin expects, and 20 commands at once on a 10 session limit all ran, waiting their turn.

Policy MAC conditions (#110, Windows Server 2025 only, 2026-11-21): colons and a full address without 12 digits are refused, and Windows joins the digits of a prefix and pads an odd count on the left (02-4e-42-a* is stored as 00-24-e4-2a-*). Lab probes on 2026-11-22 (Windows Server 2025): dots and spaces are refused, spaces around the value too; a prefix of 6 bytes or more (024e420a0b0c*) is refused; a full address keeps its 12 digits whatever the dashes (024-e42-0a0b-0c is stored as 02-4e-42-0a-0b-0c). Not tried: Windows Server 2022.

Not tried: Kerberos, SSH with a password or SSH with a key through a management host; classic (not resource-based) or unconstrained Kerberos delegation; a custom Kerberos SPN.

Over SSH, Windows OpenSSH stalls on long script input (a 65 000 character line hung on Windows Server 2022). The plugin sends a script over 32 KB as a file instead: it uploads it over SFTP to the account's home folder under a random name, sends only its path, a checksum (and any secret) on stdin, and deletes it once read; a file changed in the meantime is refused before anything runs. The server needs the sftp subsystem, which Windows OpenSSH enables by default; without it a long script fails with an error that says so. Its scripts send under 24 KB (the batched reads cap what they send), so only very large parameter lists use the file. Checked on Windows Server 2025 (a 1 MB script that hangs on stdin runs in 7 s as a file); not yet on Windows Server 2022.

Try the plugin on a lab server before a production one, and use Dry run before turning Sync enabled on.

Scope of v1

  • DHCP only. DNS records, DHCP server roles and features, and server-wide settings beyond those listed in How objects map are out of scope. The DHCP Server role must already be installed.
  • No authorization in Active Directory. The plugin does not authorize DHCP servers.
  • Leases are read only and not stored. No lease history, no IP address updates from leases, at most 5000 leases shown per read. Windows reports no state for DHCPv6 leases, so their state shows as n/a.
  • DHCPv6 is limited to scopes, reservations, user classes and values of standard DHCPv6 options. DHCPv6 vendor classes, custom option definitions and exclusion ranges are left alone. See DHCPv6.
  • Failover is IPv4 only, as on Windows.
  • No data migration from 0.1.x. 0.2.0 starts empty: recreate the Windows servers and import them again (see Upgrading from 0.1.x). Data in netbox-plugin-dhcp is neither read nor changed.

Windows rules the plugin will not work around

Some changes are only possible on Windows by removing an object with everything in it. The plugin refuses them rather than delete data: a scope's subnet mask, an option definition's type or array flag, clearing an option definition's default value, removing a policy condition, a failover relationship's partner or a hot standby server's role. The dry run shows the subnet mask and failover changes as not pushed (and they hold back the IPv4 deletes); for the others the push fails on them. Make them on Windows by hand, then import (for a default value: set another one, or delete the definition and create it again). Turning a failover relationship's message authentication off is never pushed either: do it by hand on Windows. See Push.

Windows also refuses some policies outright: a condition value with a wildcard in the middle (host*.example.com; put it at the start or the end), and IP ranges or ordinary option values on a policy with an FQDN condition (errors DHCP 20135 and 20136). A push of such a policy fails the same way, so fix it in NetBox.

Edits of a prefix, IP range or IP address in IPAM are not checked against the scopes and reservations that use them (only the permission to change them is, see IPAM edits). A range that ends up outside its prefix, or a reservation outside its scope's prefix, is left out of the next push with a reason in the dry run, and the Windows object stays as it was until NetBox is fixed. The same goes for scopes of one server sharing addresses, overlapping exclusion ranges and two reservations for one client in a scope: NetBox accepts them, the push leaves them out (see Push). While anything in a family cannot be pushed, nothing in that family is deleted; the dry run lists what is waiting and why. So a single object left out (in any scope of the server) holds back every IPv4 delete, every DHCPv6 delete, or every server-level policy delete, until it is fixed; a create that needs one of those deletes first (the same client's reservation at a new address in the scope, an exclusion range moved over its old addresses, a renamed failover relationship) waits with it. A scope sharing addresses with a scope NetBox manages but no longer holds is not left out: the push deletes the old one first, and if that delete is held back (changed on Windows, hand-made objects in it) the new scope fails at Windows. A scope's subnet mask still cannot change through a push: split or merge the scope on Windows, then import. Scopes swapped between two failover relationships in one go are refused: move one scope at a time. Like any refusal, a refused swap holds back every IPv4 delete of the server, and so other moves between relationships, until it is undone or done one scope at a time. A relationship taking a scope another one lets go can still fail at Windows (partner unreachable, missing secret); the push then puts the scope back where it was, and if that fails too (or the connection is lost) the error says so and the scope is in no relationship until the next push adds it where NetBox wants it.

NetBox and branching

  • NetBox 4.7 only (the plugin declares max_version = 4.7.99).
  • An empty merge sends no signal, so it queues no push.
  • Edits made directly in main push without approval, even with change control.

Operations

  • The worker's database connection must not go through pgbouncer in transaction mode (advisory locks).
  • A DHCPv6 reservation deleted on Windows while a server is being read fails that read (import, push or dry run): Windows reports it with a database error code (DHCP 20013), which the plugin does not take for "deleted". The next run works. A server-level policy deleted during a read fails it too (Windows reports it as not found, but the server-wide lists are not read again); the next run works. An IPv4 reservation or a scope policy deleted during a read only makes its scope be read again.
  • Reading a server takes a few PowerShell calls per scope, max_concurrency scopes at a time: the option values of a scope's reservations and the IP ranges and values of its policies are read in batches of up to 64 per call, so the number of calls grows 64 times slower with the number of reservations or policies. The server-wide lists (IPv4 and DHCPv6, about 15 calls) are read one after another first. A push or an import of a server with thousands of scopes still takes minutes.
  • max_concurrency caps the sessions of one job, not of one Windows host: several server records reaching the same host, or several jobs at once, add up (see Workers).
  • Two Windows servers that hold the same subnet without being failover partners share one IP range in NetBox when they are imported into the same VRF, and an import will not move that range for one of them: the scope change fails and names the other scope. To avoid the sharing, give each server its own import VRF before its first import; a scope that already exists keeps the VRF of its prefix, so for those see Troubleshooting. Import the failover relationship if they are partners. A range change and a brand new failover relationship found in the same import no longer need a second run: the scope is written first and already counts as shared with the partner when every scope of the relationship is in NetBox (or created by the same run) and the user applying it may add the relationship. A proposal's scope item applied without the relationship's item still waits for it. If the relationship then fails anyway (a stale item, for example), the range change stays: NetBox has the new range for both servers but no relationship. Import or apply the relationship again, or put the range back by hand.
  • Deleting a device, virtual machine or interface whose IP address or MAC address a reservation uses is refused by NetBox, on purpose: removing the reservation with it would also remove it from Windows on the next push. The refusal links the reservation, and the pages of the device, virtual machine, interface, IP address and MAC address list the reservations that use them in a DHCP reservations panel (see Reservations). Delete the reservation, or unassign the address from the interface, first (a primary or out-of-band IP, or an interface's primary MAC address, must stop being primary before NetBox lets it be unassigned). Deleting a module or an FHRP group is refused the same way when a reservation uses one of its interfaces' addresses or its virtual IP address; those pages have no panel, so look at the interface or IP address page.