Adding a field to disks

I wanted to add a field to a Datacenter Asset “Disks” called notes. Whats the best way to go about this? I was looking at ./lib/python3.6/site-packages/ralph/assets/models/ and it looks like I could just modify this, but if I wanted to make sure this persisted if I upgraded ralph ,etc


Hi @searths,

Modifying files in-place is not a good idea — every update will be broken. Is it possible for you to achieve what you need by using custom fields?

yeah, I guess I will just use custom fields.

May i ask how you used the custom fields in your case to resolve your issue. I am in a similar boat where i have to add a GPU info to a node. I know i can add a custom file to the data center asset, but is it possible to just add the custom field to the asset Model and get it inhertited to the datacenter asset using that assetModel ?