PowerNetbox v4.5.3.1
Released 2026-03-05 - View on GitHub
Bug Fix
Fix Interface Mode conversion and VLAN parameter validation (#360)
Thanks to @asalogubov for reporting this bug.
Mode parameter sent legacy numeric values
New-NBDCIMInterface and Set-NBDCIMInterface converted -Mode Access to 100 (legacy numeric) instead of "access" (string). Modern Netbox rejects the numeric values with "100 is not a valid choice".
Fix: Mode now converts to API string values (access, tagged, tagged-all). Legacy numeric values (100, 200, 300) are also accepted and converted for backward compatibility.
VLAN parameters rejected valid database IDs
-Untagged_VLAN and -Tagged_VLANs had [ValidateRange(1, 4094)] which treated the value as a VLAN VID. However, these parameters accept Netbox database IDs which can be much larger (e.g., 14402).
Fix: Changed from [uint16] with [ValidateRange(1, 4094)] to [uint64], consistent with other ID parameters in the module.
Tests
- 11 new unit tests covering Mode conversion and large VLAN IDs
- All 53 interface tests pass