個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證NetBox plugin to read and write Windows DHCP Server data over WinRM, built on netbox-plugin-dhcp
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗A NetBox plugin that models Microsoft Windows DHCP servers in NetBox and keeps both in step, in both directions, over WinRM or SSH.
Documentation: https://thomaschristory.github.io/netbox-windows-dhcp-plugin/
Status: 0.2.0rc1, release candidate. The plugin no longer needs netbox-plugin-dhcp: it holds the whole Windows DHCP configuration in its own models. 0.2.0 is a fresh start from 0.1.x (see the upgrade notes). Every v1 feature is built and tested against an in-memory fake server and PowerShell stubs. The Windows side (scripts, transports, sync rules) is that of 0.1.x, apart from option values now being lists; 0.1.0's lab tests ran in full against two Windows Server 2022 DHCP servers (import, push, leases and failover, over WinRM HTTP and HTTPS and over SSH). 0.2.0 passed the full lab tests (
make test-lab,make lab-e2e) on two Windows Server 2025 servers over WinRM HTTP with CredSSP. Kerberos and SSH key authentication have not been tried on a real server yet (see the limitations). Try it on a lab server first.
import_interval minutes. With
netbox-branching each import lands in a branch (plus a change
request with netbox-change-control); without it, in an import
proposal whose items you apply or dismiss.allowed_hosts, never in the database.| Plugin | NetBox | netbox-plugin-dhcp | netbox-branching | Python |
|---|---|---|---|---|
| 0.2.x | 4.7 | not used | 1.2.2+ (optional) | 3.12 to 3.14 |
| 0.1.x | 4.7 | 0.2.x (required) | 1.2.2+ (optional) | 3.12 to 3.14 |
main is the 0.2 line. The 0.1.x line (latest 0.1.1, branch release/0.1) keeps getting bug fixes, but no new
features, for installs that stay on netbox-plugin-dhcp: pin netbox-windows-dhcp-plugin<0.2 to stay on it.
Windows Server 2016 or later with the DHCP Server role.
pip install --pre netbox-windows-dhcp-plugin # or ==0.2.0rc1; 0.1.x stays the default until 0.2.0 is out
# extras: [kerberos] for Kerberos (needs system GSSAPI libraries), [branching] for branching and change control
PLUGINS = ["netbox_windows_dhcp_plugin"]
PLUGINS_CONFIG = {
"netbox_windows_dhcp_plugin": {
"credentials": {
"dhcp-admin": {
"username": "CORP\\svc-netbox-dhcp",
"password_env": "DHCP_ADMIN_PASSWORD",
"allowed_hosts": ["dhcp*.corp.example"],
},
},
},
}
Run python manage.py migrate, restart NetBox and its worker, then add a Windows server under Windows DHCP >
Windows servers, click Test connection and Import now (Import with netbox-branching). The
first sync walkthrough covers the rest.
The same pages are in the docs/
folder of the repository.
Requires uv and Docker.
make lint # ruff check and format check
make test # unit tests, no NetBox needed
make dev # NetBox, branching and change control in docker
make test-netbox # NetBox integration tests inside the dev stack
make docs # build the documentation site
make dist # build and check the wheel and sdist
See Development for the lab tests against a real Windows server.
Apache-2.0, see LICENSE.