Patch panel mappings not being created from YAML import #266

Closed
opened 2026-04-05 16:23:59 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @odiseo123 on 3/1/2026

NetBox Edition

NetBox Community

NetBox Version

v4.5.3

Python Version

3.12

Steps to Reproduce

  1. Import device type from library: https://github.com/netbox-community/devicetype-library/blob/master/device-types/Generic/24-port-copper-patch-panel.yaml

Expected Behavior

Since the YML is explicitly mapping front and rear ports 1-to-1...
Image

... I was expecting front and rear ports to be automatically mapped, i.e. the "mapping" column being populated:
Image

Observed Behavior

Instead, all mappings are empty:
Image

and I have to manually map each port:
Image

Image

Or recreate "Front Ports" with:
Image

...which results in the correct mappings throughout:
Image

... but, in my opinion, recreating would defeat the purpose of the import in the first place.

Is this a bug or am I missing something?

*Originally created by @odiseo123 on 3/1/2026* ### NetBox Edition NetBox Community ### NetBox Version v4.5.3 ### Python Version 3.12 ### Steps to Reproduce 1. Import device type from library: https://github.com/netbox-community/devicetype-library/blob/master/device-types/Generic/24-port-copper-patch-panel.yaml ### Expected Behavior Since the YML is explicitly mapping front and rear ports 1-to-1... <img width="153" height="83" alt="Image" src="https://github.com/user-attachments/assets/9391afd6-6532-4eca-84e1-9a30d53a5336" /> ... I was expecting front and rear ports to be automatically mapped, i.e. the "mapping" column being populated: <img width="947" height="97" alt="Image" src="https://github.com/user-attachments/assets/21048d99-dfe2-4f86-b83e-da40f84dec5c" /> ### Observed Behavior Instead, all mappings are empty: <img width="963" height="361" alt="Image" src="https://github.com/user-attachments/assets/4dd23c3d-3330-4338-9ca5-fda24a533e16" /> and I have to manually map each port: <img width="667" height="665" alt="Image" src="https://github.com/user-attachments/assets/a3837ac0-f9e2-4941-86d5-8c75dbcf0522" /> <img width="1676" height="238" alt="Image" src="https://github.com/user-attachments/assets/1bee07b6-c79b-4887-b77a-109513f7857c" /> Or recreate "Front Ports" with: <img width="1171" height="820" alt="Image" src="https://github.com/user-attachments/assets/80061ca0-8f79-4256-92c5-876239f16d6b" /> ...which results in the correct mappings throughout: <img width="960" height="478" alt="Image" src="https://github.com/user-attachments/assets/a9ee9445-3f80-46af-83f6-af2e34b1cc63" /> ... but, in my opinion, recreating would defeat the purpose of the import in the first place. Is this a bug or am I missing something?
Sign in to join this conversation.
No Label netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox netbox status: revisions needed status: revisions needed status: revisions needed status: revisions needed status: revisions needed status: revisions needed status: revisions needed type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug type: bug
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#266