netbox_slm icon indicating copy to clipboard operation
netbox_slm copied to clipboard

Added top level menu option for config, and added bulk import to all 4 classes

Open erichester76 opened this issue 1 year ago • 3 comments

I also changed the menu top level name to Software because it looks better in the top level.

If you want to move the meny top level just set this in plugins.py

PLUGINS_CONFIG = { 'netbox_slm': { 'top_level_menu': True, }, }

erichester76 avatar Oct 13 '24 22:10 erichester76

I would suggest a squash, I worked in the repo. Sorry.

erichester76 avatar Oct 13 '24 22:10 erichester76

I would suggest a squash, I worked in the repo. Sorry.

No problem, we're very happy to receive contributions. I'll clean up and do some testing before merge

wkoot avatar Oct 14 '24 08:10 wkoot

Hmm, there seem to be quite some errors when trying to use the import feature. The output data produced by the Export (CSV) option is not importable itself, so testing is a bit complicated. All fields which are externally referenced (i.e. foreign keys), need to be manually changed in the csv (or omitted). Additionally, some of the field validation checks don't work as in the regular form: e.g. stored_location_url validation (being LaxURLField). For now, I'll try to merge a limited set of fields for importing. Then we can work on adding the other fields later

wkoot avatar Oct 14 '24 10:10 wkoot