Import cables from CSV, what am I missing? #5791
-
I don't understand what the import tool expects to have, am I missing something simple? I can't find much of anything referencing imports in the docs. I have thousands of "cables" to create that I have defined manually in a csv ready to go. Just connecting rear ports of patch panels between buildings. Where can I find what fields the import tool expects and how can I validate the data types that it will allow? Exporting cables to CSV gives me:
Import from CSV shows:
Using v2.10.4. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm afraid that importing and exporting CSV are not compatible with each other - they use different columns and different values. See this thread. On Netbox v2.10 you can simply click on the question mark next to the column names in the import page, to get the available choices. For patch panel rear ports this would be You can import type, status, label etc as well if you want - just add the extra columns. In the CSV import page, under Netbox 2.10, the question mark icon to the right of the field will give you the allowed values. |
Beta Was this translation helpful? Give feedback.
-
Normally netbox gives you an error whats wrong or missing. side_a_device,side_a_type,side_a_name,side_b_device,side_b_type,side_b_name,type,label,color,length,length_unit |
Beta Was this translation helpful? Give feedback.
I'm afraid that importing and exporting CSV are not compatible with each other - they use different columns and different values. See this thread.
On Netbox v2.10 you can simply click on the question mark next to the column names in the import page, to get the available choices. For patch panel rear ports this would be
dcim.rearport
. Theside_a_device
is the name of the device, and theside_a_name
is the name of the rearport (not the database ID).You can import type, status, label etc as well if you want - just add the extra columns. In the CSV import page, under Netbox 2.10, the question mark icon to the right of the field will give you the allowed values.