robertcsapo / ciscodnacnetbox

Cisco DNA Center Integration with NetBox
Other
34 stars 16 forks source link

Error - cannot import name 'StaticSelect2' from 'utilities.forms' #4

Closed lorodriguez closed 2 years ago

lorodriguez commented 3 years ago

Getting this error when trying to use this plugin on Netbox v3.0.6:

<class 'ImportError'>

cannot import name 'StaticSelect2' from 'utilities.forms' (/opt/netbox/netbox/utilities/forms/init.py)

If I remove the plug-in, I do not receive this error. Does this plugin need to be updated for v3?

robertcsapo commented 3 years ago

@lorodriguez you are correct, this plugin isn't compatible with netbox 3.0+ there's certain things that needs to be adjusted, like "StaticSelect2" and cacheops in source code of this plugin.

Not sure how much work is needed, but it's probably doable. Give thumbs up if you want v3.0 support 👍

lorodriguez commented 3 years ago

That's a big thumbs up from me. I also had one question. When dealing with switch stacks from DNAC, is it possible to have this import them as virtual chassis with the individual switches set up as members?

For a stack of 5 9300's, it seems to throw an error because the S/N field in Netbox can only handle 4 device S/N. Looks to be a length issue.

robertcsapo commented 3 years ago

@lorodriguez there's a new branch with netbox v3.0 support https://github.com/robertcsapo/ciscodnacnetbox/compare/main...v3 could you test this one? pip install ciscodnacnetbox==3.0.5

(I haven't address the stacking of more members)