Replies: 2 comments 1 reply
-
I found #4727 where @jeremystretch suggested using
|
Beta Was this translation helpful? Give feedback.
-
That's more or less the same as Netbox's data model (actually it's site + tenant + lowercased device name)
In general, I agree with you: if you can specify a device by name, you ought to be able to specify all the columns needed to identify a device uniquely. You could raise it as a feature request, although unless the FR gets accepted and you can submit the code yourself to do it, it might not get done. Note that virtual machine names are unique over (cluster + tenant + lowercased name) so "cluster" would also need to be added. Another problem is that IP address does have a tenant field, so what happens if you want to create the IP address itself for tenant X, but the device is assigned to tenant Y? I think this implies you need columns like (Thinks: does that even work already? I just tested it with v3.6.7, and no. If I give both I'd say that in general, CSV import/export doesn't get much attention in Netbox. It's been a long-standing cause of confusion that the export and import formats are not compatible with each other, and there are lots of scenarios which can't import faithfully (e.g. cables with multiple terminations) Other ways you can import include:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my device naming convention, device names are not globally unique, but they are unique within a site.
I want to import IP addresses from a CSV file, but it fails because there are multiple devices by the same name. I don't see a way to include a
site
field in this import procedure. How is this supposed to be done? Here's an example of the CSV data I want to import:Beta Was this translation helpful? Give feedback.
All reactions