netbox-community / Device-Type-Library-Import

This library is intended to assist with importing device and module types into NetBox from the NetBox Community DeviceType-Library
https://github.com/netbox-community/devicetype-library
MIT License
247 stars 74 forks source link

FR - Update Existing Device Types in NetBox #93

Open stuntguy3000 opened 1 year ago

stuntguy3000 commented 1 year ago

I'd like to propose a new feature which I believe could be quite useful.

I can see an issue where with the Device Library being updated with new information, it means people who have once previously imported those datasets can not take advantage of the new information.

I propose a setting which deletes all unused device types in NetBox (that do not have any associated devices), prior to then re-importing them. This means the new data is applied and ready for use going forward.

Perhaps this could lead the way to updating device types that are in use with delta changes or what not, but that's another discussion.

ndom91 commented 1 year ago

I vaguely remember reading a netbox update that devices can be synced with their "upstream" device types now. Or maybe this was a plugin? Either wya, that would also cover this sort of behaviour. I'm sure its a common user request as well, to keep their devices update with the "official" device-type library