alsigna / netbox-software-manager

NetBox Plugin to deal with Cisco IOS & XE software
MIT License
46 stars 8 forks source link

Remove the need for a custom field for sw_version #9

Open ryanmerolle opened 1 year ago

ryanmerolle commented 1 year ago

Instead of adding custom fields to the device model, you can create a new model that models host software version.

I do something similar with ACL to interface assignments. It is not 100% like your model because I have an ACL linked to only 1 host(vm, device, virtual_cluster), and than that said ACL can be assigned any interface assigned to that "host"

https://github.com/ryanmerolle/netbox-acls/blob/dev/netbox_acls/models/access_lists.py#L90-L155

ryanmerolle commented 1 year ago

You can show the info on the devce/virtual chasses/virtual machine object using cards for compatibility with any netbox install earlier than 3.4 OR you can use the new view tab for 3.4.

ryanmerolle commented 1 year ago

As I mentioned I am happy to tackle some of these issues if you want to assign any to me.