[PR #1359] [MERGED] Add bulk (CSV) import/export for more object types #12191

Closed
opened 2025-12-29 22:20:08 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/1359
Author: @paravoid
Created: 7/18/2017
Status: Merged
Merged: 9/29/2017
Merged by: @jeremystretch

Base: develop-2.2Head: develop-2.1


📝 Commits (6)

📊 Changes

10 files changed (+197 additions, -2 deletions)

View changed files

📝 netbox/dcim/forms.py (+87 -1)
📝 netbox/dcim/models.py (+52 -0)
📝 netbox/dcim/urls.py (+4 -0)
📝 netbox/dcim/views.py (+28 -0)
📝 netbox/extras/constants.py (+2 -1)
📝 netbox/templates/_base.html (+4 -0)
📝 netbox/templates/dcim/devicetype_list.html (+5 -0)
📝 netbox/templates/dcim/manufacturer_list.html (+5 -0)
📝 netbox/templates/dcim/rackgroup_list.html (+5 -0)
📝 netbox/templates/dcim/region_list.html (+5 -0)

📄 Description

Fixes: #1347

This adds bulk (CSV) import & export for regions, rack groups, manufacturers and device types, which can be useful when e.g. importing from a legacy system, as described in #1347.

Mostly copy/paste from the bulk/CSV forms of other object types and tested locally with a few fields for each (but not all), so a careful code review would be appropriate and appreciated!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/1359 **Author:** [@paravoid](https://github.com/paravoid) **Created:** 7/18/2017 **Status:** ✅ Merged **Merged:** 9/29/2017 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.2` ← **Head:** `develop-2.1` --- ### 📝 Commits (6) - [`fbc5e74`](https://github.com/netbox-community/netbox/commit/fbc5e74318bd58b3bcb0cdec78627cb76a4df5ef) Allow import/export of regions (#1347) - [`beb9155`](https://github.com/netbox-community/netbox/commit/beb91559e5e2215c671c3ff00e247a86540bcee9) Allow import/export of rack groups (#1347) - [`f30fa92`](https://github.com/netbox-community/netbox/commit/f30fa925eaa2f562a65f88319aa8681116436867) Allow import/export of manufacturers (#1347) - [`4544893`](https://github.com/netbox-community/netbox/commit/4544893b4cbf3301ee66b3dbc79f5cbf6217ba77) Allow import/export of device types (#1347) - [`068c0ff`](https://github.com/netbox-community/netbox/commit/068c0ff36cbc0b783e9cb5ae4b729ac9c5e65b39) Merge branch 'develop' into develop-2.1 - [`3d25cec`](https://github.com/netbox-community/netbox/commit/3d25cecc6915c404e30f4d81066945482f954dda) Merge branch 'develop-2.2' into develop-2.1 ### 📊 Changes **10 files changed** (+197 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/forms.py` (+87 -1) 📝 `netbox/dcim/models.py` (+52 -0) 📝 `netbox/dcim/urls.py` (+4 -0) 📝 `netbox/dcim/views.py` (+28 -0) 📝 `netbox/extras/constants.py` (+2 -1) 📝 `netbox/templates/_base.html` (+4 -0) 📝 `netbox/templates/dcim/devicetype_list.html` (+5 -0) 📝 `netbox/templates/dcim/manufacturer_list.html` (+5 -0) 📝 `netbox/templates/dcim/rackgroup_list.html` (+5 -0) 📝 `netbox/templates/dcim/region_list.html` (+5 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. --> ### Fixes: #1347 <!-- Please include a summary of the proposed changes below. --> This adds bulk (CSV) import & export for regions, rack groups, manufacturers and device types, which can be useful when e.g. importing from a legacy system, as described in #1347. Mostly copy/paste from the bulk/CSV forms of other object types and tested locally with a few fields for each (but not all), so a careful code review would be appropriate and appreciated! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:20:08 +01:00
adam closed this issue 2025-12-29 22:20:08 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12191