IPAM doesn't import interfaces #7061

Closed
opened 2025-12-29 19:48:28 +01:00 by adam · 3 comments
Owner

Originally created by @flinky50 on GitHub (Oct 3, 2022).

NetBox version

3.2.0

Python version

3.8

Steps to Reproduce

  1. Click on IP address
  2. Click import
  3. set address,status,description,interface as CSV fields
  4. EG 192.168.0.0/24,active,My Server,device1

Expected Behavior

IP Address to be created with an interface linked to it.

Observed Behavior

image

Originally created by @flinky50 on GitHub (Oct 3, 2022). ### NetBox version 3.2.0 ### Python version 3.8 ### Steps to Reproduce 1. Click on IP address 2. Click import 3. set address,status,description,interface as CSV fields 4. EG 192.168.0.0/24,active,My Server,device1 ### Expected Behavior IP Address to be created with an interface linked to it. ### Observed Behavior ![image](https://user-images.githubusercontent.com/114894442/193498332-ef23f307-3542-43d4-ad93-9040e94433e4.png)
adam closed this issue 2025-12-29 19:48:28 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Oct 3, 2022):

It is indicating that you have no interface named device1 (would also be a weird name for an interface). When importing ip addresses you should provide both device name and interface name.

If you are actually wanting to import interfaces like the title of the issue suggests, that is not done in under IP Addresses, that's done under Interfaces.

Feel free to open a discussion if you have more trouble with the import forms.

@kkthxbye-code commented on GitHub (Oct 3, 2022): It is indicating that you have no interface named `device1` (would also be a weird name for an interface). When importing ip addresses you should provide both device name and interface name. If you are actually wanting to import interfaces like the title of the issue suggests, that is not done in under IP Addresses, that's done under Interfaces. Feel free to open a discussion if you have more trouble with the import forms.
Author
Owner

@flinky50 commented on GitHub (Oct 3, 2022):

My interface isn’t called that. On my device I’ve created an interface called port 1. No matter what I enter it still throws that error

@flinky50 commented on GitHub (Oct 3, 2022): My interface isn’t called that. On my device I’ve created an interface called port 1. No matter what I enter it still throws that error
Author
Owner

@kkthxbye-code commented on GitHub (Oct 3, 2022):

According to your issue this is what you are trying to import as an IP address:

address status description interface
192.168.0.0/24 active My Server device1

In english that would be an IP address with the address of 192.168.0.0/24 with the description "My Server" attached to the interface called "device1" on an unknown device.

You need to use the correct interface name and you need to add device. Please open a discussion if you have any more issues understanding the CSV import forms.

I would also recommend reading the documentation: https://demo.netbox.dev/static/docs/models/ipam/ipaddress/

@kkthxbye-code commented on GitHub (Oct 3, 2022): According to your issue this is what you are trying to import as an IP address: | address | status | description | interface | |----------------|--------|-------------|-----------| | 192.168.0.0/24 | active | My Server | device1 | In english that would be an IP address with the address of 192.168.0.0/24 with the description "My Server" attached to the interface called "device1" on an unknown device. You need to use the correct interface name and you need to add device. Please open a discussion if you have any more issues understanding the CSV import forms. I would also recommend reading the documentation: https://demo.netbox.dev/static/docs/models/ipam/ipaddress/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7061