You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some Hosts in the vCenter for which the site can't be inferred from the name, and therefore are set to the default site (vCenter: <vcenter-name>) by the sync.
I then manually put the Devices in the right Site and Rack. But then on the next run of the sync script, those Devices generates errors because the sync tries to override the Site to the default.
Example of error:
2024-08-10 02:20:02,151 - ERROR: NetBox returned: PATCH /api/dcim/devices/4707/ Bad Request
2024-08-10 02:20:02,151 - ERROR: NetBox returned body: {'rack': ['Rack XYZ does not belong to site vCenter: <vcenter-name>.']}
Is there a way to bypass the override of the Site when the device already has a Site in NetBox that is not the default one?
The text was updated successfully, but these errors were encountered:
joachimBurket
changed the title
Allow to avoid overriding the Devices Site with the default site (vCenter: vcenter-hvs)
Allow to avoid overriding the Devices Site with the default site (vCenter: <vcenter-name>)
Aug 28, 2024
Hi!
They do belong to clusters, but these clusters have their Site to <NONE>, because our Clusters aren't specific to a Site
We therefore used the host_site_relation to place the Hosts depdending on their name, which works for most of our devices. But we still have some devices that aren't named conventionally and are placed in the default site.
A workaround could be to add those Devices in the host_site_relation, but it is not very practical, as we would need to update the settings.yaml for any new unconventional Device.
An interesting feature for us would be to be able to set a default value for the different relations in the settings file (for instance the host_site_relation), and then being able to configure the sync so that it doesn't override the values in NetBox that were changed from the default one to another value. Would it make sense to you?
I have some Hosts in the vCenter for which the site can't be inferred from the name, and therefore are set to the default site (
vCenter: <vcenter-name>
) by the sync.I then manually put the Devices in the right Site and Rack. But then on the next run of the sync script, those Devices generates errors because the sync tries to override the Site to the default.
Example of error:
Is there a way to bypass the override of the Site when the device already has a Site in NetBox that is not the default one?
The text was updated successfully, but these errors were encountered: