How to link/map Devices and virtual machines from other sources #18735
-
Hi, Now the tricky part: In the external system there are UUIDs, that will not change while renaming an object. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can add a custom field to any netbox object if you need to store external identifiers. I have a similar problem with VLANs that I import from another system where VLANs might get renamed but keep their number. To do a "sync" I query all my objects from the external source and from netbox and match them on the identifier and do a
on them. |
Beta Was this translation helpful? Give feedback.
-
Thank you! I will think about the two options I see for now:
|
Beta Was this translation helpful? Give feedback.
You can add a custom field to any netbox object if you need to store external identifiers.
Renaming things though ansible netbox modules is not straight forward, as it expects the names to be a unique identifer, so renaming doesn't work or at least I haven't understand how to do it.
I have a similar problem with VLANs that I import from another system where VLANs might get renamed but keep their number.
To do a "sync" I query all my objects from the external source and from netbox and match them on the identifier and do a
on them.