networktocode / ntc-netbox-plugin-onboarding

A plugin for NetBox to easily onboard new devices.
Other
245 stars 46 forks source link

ERROR device type xxxx already exists for vendor xxxx #109

Closed GeertReijnders closed 3 years ago

GeertReijnders commented 3 years ago

Environment

My plugin config is configuration.py is:

PLUGINS = ['netbox_onboarding']

I expect the device to be created.

after a while, I see the following message: ERROR device type xxxx already exists for vendor xxxx

mzbroch commented 3 years ago

This error condition is typically raised whenever a Device Type (NetBox object) recognized on a network device has a different manufacturer assigned (in NetBox) than manufacturer recognized through automation.

Plugin uses the existing NetBox objects - including Device Type and Manufacturers - please validate existing database objects and update with details

GeertReijnders commented 3 years ago

I already created the Vendor Cisco Systems with all the device types before I ran into this script. This script creates the Vendor for me (Cisco) and looks for the device type, which already exists. So I changed the vendor name to Cisco and now the script works fine!

This is something I wasn't aware of. Thanks for the explanation.