Replies: 4 comments 10 replies
-
Hi @cyr0nk0r, we appreciate that you edited your original post but remember that everything that you put on the internet stays on the internet, forever. I understand from your other few opened issues and questions (#10321, #10323) that you are having issues with the asymmetry related to the export and import formats that NetBox allows. The format is indeed asymmetrical by design as the export format was intended for Humans to read/use whilst the import format is intended for NetBox to use and thus, needs to be machine-readable. Everything pertaining to the import format is however very well documented on the import page of each models, for instance https://demo.netbox.dev/dcim/devices/import/ (use admin/admin to login if you haven't already). The supported fields and how the columns should be identified in the csv file are right in there, and the If you feel that the documentation is inappropriate and does not cover accurately the process of doing Bulk Imports, then I encourage you to open a documentation issue describing accurately what you would like in there and your thought process. In regards of "feeding back to NetBox its exported data", would you mind sharing an example of use-case? Maybe there is a better way (aka you're holding it wrong) or maybe you're right and we should do something about this user experience related issue. In any case, remember to treat the NetBox Community with due respect as failure to do so will not be tolerated. We are a group of enthusiasts and most of us are contributing to NetBox on our own personal time, so please be mindful of that. I recommend that you read through GitHub's best practices on the topic. |
Beta Was this translation helpful? Give feedback.
-
read-write, read-only, hidden |
Beta Was this translation helpful? Give feedback.
-
Team, I understand you can see comments before they were edited. And I hear you regarding due respect. I would say that others on your team also need to treat the community with due respect. My frustration is not directed at either you Jonathan, or kkthxbye-code, since both of you actually took the time to either attempt to help, or provide the information that is tripping me up. What I don't appreciate is submitting a discussion or feature request or bug report and having them closed with what is essentially a RTFM from Jeremy. I will reiterate that I do not understand why he has such an adversarial attitude towards people just trying to learn. We are not all Linux experts, we are not all programmers. And when my submitted bug request was closed out with a curt response I then moved things over to discussions so I could hopefully better understand what my problem is, which Jeremy then again just closed with another 'your question was answered'. No actually, it wasn't answered. Since neither is it documented anywhere that field names are case-sensitive, nor is the ui-visibility column's available options documented anywhere. |
Beta Was this translation helpful? Give feedback.
-
If you say the field is documented properly called 'name', but 'Name' doesn't work and there is no mention that 'Name' will fail or that it MUST be 'name' and only 'name' as being properly documented then I guess we'll have to agree to disagree. If you seriously don't see the problem with a field being case sensitive and not making ANY mention that the field name must be case sensitive as proper documentation then there isn't anything more I can say here. |
Beta Was this translation helpful? Give feedback.
-
I am attempting to export and import items from CSV's. Through trial and error I have determined that when NetBox exports CSV's the field names are similar, but not what NetBox accepts during import.
"Name" instead of "name"
"Content Types" instead of "content_types"
The field names are also case sensitive, which isn't documented anywhere btw.
Anyway, I've managed to manually clean a CSV export and get it all the way to the very last column. In my particular example I'm dealing with the 'custom fields' section.
There is a column called 'ui_visibility'. When doing an export, the output in the CSV is 'Read/Write'. However, during the import it fails saying that 'Read/Write' is not a valid option. Where are the options documented? For type, content_types, and object_types there is a question mark at the end of the row that gives you a popup of all the possible options. But this doesn't exist for 'ui_visibility'
I've tried 'read/write' all lowercase, I've tried 'readwrite'. I'm at a loss here and hopefully someone can assist.
Beta Was this translation helpful? Give feedback.
All reactions