Skip to content

Conversation

@haseebsyed12
Copy link
Contributor

When a device exists in Nautobot with the same name but a different UUID (e.g., from a previous enrollment or manual creation), the sync would fail with "A device with this name already exists" error.

This change adds fallback logic to:

  1. Look up device by name if not found by UUID
  2. If found with mismatched UUID, delete and recreate with correct UUID

@haseebsyed12 haseebsyed12 requested a review from a team January 16, 2026 11:25
When a device exists in Nautobot with the same name but a different UUID
(e.g., from a previous enrollment or manual creation), the sync would
fail with "A device with this name already exists" error.

This change adds fallback logic to:
1. Look up device by name if not found by UUID
2. If found with mismatched UUID, delete and recreate with correct UUID
@haseebsyed12 haseebsyed12 force-pushed the nautobot_device_name_conflict branch from 05b2399 to f73fe37 Compare January 16, 2026 11:26
@cardoe cardoe added this pull request to the merge queue Jan 17, 2026
Merged via the queue into main with commit f83b76f Jan 17, 2026
54 checks passed
@cardoe cardoe deleted the nautobot_device_name_conflict branch January 17, 2026 06:05
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

Successfully merging this pull request may close these issues.

4 participants