Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to override the Asset Name with the Assigned Device's Name #195

Open
moetezz opened this issue Sep 20, 2024 · 1 comment
Open

Ability to override the Asset Name with the Assigned Device's Name #195

moetezz opened this issue Sep 20, 2024 · 1 comment

Comments

@moetezz
Copy link

moetezz commented Sep 20, 2024

Add a config parameter same for sync the S/n and Asset tag to their respective in the Device View, This function will be the other way around where the Name Field can optionally take the Name of the Device. I think It would be helpful for identification purposes, or for example let's you name an unused asset as Spare switch 023, and it is going to be used you want to automatically remove the Spare 023 as name since it is being used.

Let me know if you think this will be useful. Of course it should optional.(True or False )

@moetezz moetezz changed the title Ability to override the Asset Name with the Assigned Device Ability to override the Asset Name with the Assigned Device's Name Sep 20, 2024
@matejv
Copy link
Member

matejv commented Oct 4, 2024

I'm not too keen on this feature. Just getting sync of S/N & asset tag to work asset to device was surprisingly difficult. Handling additional data in reverse at the same time sounds like a nightmare.

Here's a few questions I thought of when thinking about this for a bit (there are probably more I haven't thought of):

What should happen if a device is deleted? And what if a device is kept and only the assignment of device - asset changes? What should we do with modules and inventory items? Do we use just their names or do we consider device name as well? Also devices in netbox have optional names.

And in the end of it all - throughout the UI netbox_inventory shows what device, module etc is assigned to an asset. You can even see this in tables via Hardware column. So copying names to assets would mostly just duplicate this info.

If you have just a narrow use case of updating asset name from device - Have you considered using Event Rules to run a custom script that would update asset name for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants