Importing interfaces error - The fields device, name must make a unique set. #3704

Closed
opened 2025-12-29 18:30:41 +01:00 by adam · 3 comments
Owner

Originally created by @ognjen011 on GitHub (May 19, 2020).

Environment

  • Python version: 3.6.9
  • NetBox version: 2.8.4

Steps to Reproduce

  1. When i run bulk import interfaces on a set of multiple devices i keep seeing this error:The fields device, name must make a unique set.
  2. Step two would be to update interfaces once created but i the first job never finishes.

Expected Behavior

Expected behaviour is that the interfaces are created. This used to work fine prior to 2.8.0 as far as i can tell because that is how i populated most of my netbox install.

Observed Behavior

Observed behaviour import hangs indefinitely and multiple errors pop up: The fields device, name must make a unique set.

Originally created by @ognjen011 on GitHub (May 19, 2020). ### Environment * Python version: 3.6.9 * NetBox version: 2.8.4 ### Steps to Reproduce 1. When i run bulk import interfaces on a set of multiple devices i keep seeing this error:The fields device, name must make a unique set. 2. Step two would be to update interfaces once created but i the first job never finishes. ### Expected Behavior Expected behaviour is that the interfaces are created. This used to work fine prior to 2.8.0 as far as i can tell because that is how i populated most of my netbox install. ### Observed Behavior Observed behaviour import hangs indefinitely and multiple errors pop up: The fields device, name must make a unique set.
adam added the status: revisions needed label 2025-12-29 18:30:41 +01:00
adam closed this issue 2025-12-29 18:30:41 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 19, 2020):

Please specify the exact steps and import data that someone else can use to reproduce this bug.

@jeremystretch commented on GitHub (May 19, 2020): Please specify the exact steps and import data that someone else can use to reproduce this bug.
Author
Owner

@ognjen011 commented on GitHub (May 19, 2020):

I have a python script that creates a default interface using napalm to get a list of interfaces from my devices in netbox.

    device_id = get_device_id(f"{host}", netbox)
        netbox.dcim.create_interface(
           name=f"{interface_name}",
           interface_type=1000,
           device_id=device_id,

Which is now failing with connection.py", line 121, in post
raise exceptions.CreateException(resp_data)
netbox.exceptions.CreateException: The fields device, name must make a unique set.

@ognjen011 commented on GitHub (May 19, 2020): I have a python script that creates a default interface using napalm to get a list of interfaces from my devices in netbox. device_id = get_device_id(f"{host}", netbox) netbox.dcim.create_interface( name=f"{interface_name}", interface_type=1000, device_id=device_id, Which is now failing with connection.py", line 121, in post raise exceptions.CreateException(resp_data) netbox.exceptions.CreateException: The fields device, name must make a unique set.
Author
Owner

@jeremystretch commented on GitHub (May 20, 2020):

A script is not sufficient. Please update your original post to indicate the exact steps someone else can take to reproduce the reported issue, including the exact import data. Without this information, your issue is not actionable and will be closed.

@jeremystretch commented on GitHub (May 20, 2020): A script is not sufficient. Please update your original post to indicate the exact steps someone else can take to reproduce the reported issue, including the exact import data. Without this information, your issue is not actionable and will be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3704