netbox-attachments icon indicating copy to clipboard operation
netbox-attachments copied to clipboard

Ensure NetBox 4.0 compatibility

Open goebelmeier opened this issue 1 year ago • 3 comments

Currently netbox-attachments is breaking when installed on NetBox 4.0

ModuleNotFoundError: No module named 'extras.plugins'

Please see the dedicated plugin migration guide for a checklist of changes that may be needed to ensure compatibility with NetBox v4.0.

goebelmeier avatar May 07 '24 16:05 goebelmeier

Hello @goebelmeier,

The plugin isn't ready yet for NetBox v4.0. I'm planning to take a look at it next week.

Kani999 avatar May 09 '24 10:05 Kani999

@goebelmeier I've released a beta version https://pypi.org/manage/project/netbox-attachments/release/5.0.0b1/ of netbox-attachments that supports NetBox v4

Could you test it out on a devel environment? I did not found any problem yet.

Kani999 avatar May 14 '24 12:05 Kani999

Thank you! Will check next week, i'm on vacation until next week

goebelmeier avatar May 14 '24 12:05 goebelmeier

how can I install this, I will test.

deanfourie1 avatar May 16 '24 11:05 deanfourie1

how can I install this, I will test.

  • Just specify the version in plugin_requirements.txt (netbox-docker) or local_requirements.txt (classic netbox installation)
    • netbox-attachments==5.0.0b1
  • Enable the plugin in configuration.py:
    • PLUGINS = ['netbox_attachments']

Kani999 avatar May 17 '24 05:05 Kani999

Thanks, all is looking good for me.

However I cannot upload large files.

deanfourie1 avatar May 18 '24 08:05 deanfourie1

I believe that setting of file size is based on configuration of your webserver and other stuff.

See https://github.com/Kani999/netbox-attachments/issues/57

Kani999 avatar May 20 '24 11:05 Kani999

Hi @Kani999 - looks good to me, working fine in my Netbox 4.0.2 testing environment. When do you plan to release it?

goebelmeier avatar May 21 '24 08:05 goebelmeier

@goebelmeier - Should be released right now. Version 5.0.0

Kani999 avatar May 21 '24 09:05 Kani999