Update to match new Advanced Port Mappings#3999
Update to match new Advanced Port Mappings#3999odiseo123 wants to merge 1 commit intonetbox-community:masterfrom
Conversation
Old port mappings syntax no longer working after v4.5.2 (2026-02-03) update. Refer to netbox-community/netbox#20564, https://netboxlabs.com/docs/netbox/release-notes/version-4.5#advanced-port-mappings-20564 and netbox-community/netbox#21539 All credits to @arthanson
|
The units test fails as it seems to also be following the old port mapping syntax which requires a "rear_port" property specified in each "front_port", instead of using the mappings.
I am not a full time programmer so I am not confident editing the unit tests. However, I can confirm that the modified device-type works correctly on dockerized Netbox v4.5.3
Maybe one of the maintainers could update the unit tests, while reviewing this PR. Otherwise, the solution to this issue is documented here: netbox-community/netbox#21539 |
|
@odiseo123 This change will require that the pre-commit scripts and schema is updated to support this change |

Old port mappings syntax no longer working after v4.5.2 (2026-02-03) update.
Refer to netbox-community/netbox#20564, https://netboxlabs.com/docs/netbox/release-notes/version-4.5#advanced-port-mappings-20564 and netbox-community/netbox#21539
All credits to @arthanson