netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Support the assignment of tags to objects during bulk CSV import

Open jeremystretch opened this issue 3 years ago • 6 comments

NetBox version

v3.0.3

Feature type

New functionality

Proposed functionality

Enable the assignment of tags to objects during bulk import of CSV data. This was originally proposed specifically for IP addresses under #6420, but should apply to all objects which support tags.

Use case

This would enable users to assign tags directly to objects at the time of creation, and avoid needing to edit objects in bulk later to add the tags.

Database changes

No response

External dependencies

No response

jeremystretch avatar Sep 27 '21 18:09 jeremystretch

Probably above my knowledge level, but trying to get this to work and will submit fore review here

sdktr avatar Oct 03 '21 16:10 sdktr

This patch provides support to add a comma seperated list of tags, within a CSV Import of the 'providers' model. I'm playing around with one thing though: the tags column is required on import if setup this way.

sdktr avatar Oct 13 '21 13:10 sdktr

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

github-actions[bot] avatar Dec 13 '21 04:12 github-actions[bot]

Any hints @jeremystretch why my attempt at solving this results in an 'always required' tags column in the CSVimport? https://github.com/sdktr/netbox/commit/1a73410d8d840f8c22da0852b1f04144fc1c94e9

sdktr avatar Apr 19 '22 07:04 sdktr

@sdktr Perhaps open a draft PR and ask for comments on it.

DanSheps avatar Apr 19 '22 14:04 DanSheps

@sdktr it sounds like you have a potential solution for this? If so can you open a draft PR and we can check it.

arthanson avatar Oct 12 '22 15:10 arthanson